mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-18 07:18:53 +00:00
fix linter errors
This commit is contained in:
parent
52344391b9
commit
8ff1b3af13
4 changed files with 9 additions and 11 deletions
|
@ -283,19 +283,17 @@ def main(
|
|||
app = FastAPI()
|
||||
# instantiate kvstore for storing and retrieving distribution metadata
|
||||
if config.distribution_registry_store:
|
||||
dist_kvstore = asyncio.run(
|
||||
kvstore_impl(config.distribution_registry_store)
|
||||
)
|
||||
dist_kvstore = asyncio.run(kvstore_impl(config.distribution_registry_store))
|
||||
else:
|
||||
dist_kvstore = asyncio.run(
|
||||
kvstore_impl(
|
||||
SqliteKVStoreConfig(
|
||||
db_path=(
|
||||
DISTRIBS_BASE_DIR / config.image_name / "kvstore.db"
|
||||
).as_posix()
|
||||
SqliteKVStoreConfig(
|
||||
db_path=(
|
||||
DISTRIBS_BASE_DIR / config.image_name / "kvstore.db"
|
||||
).as_posix()
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
dist_registry = DiskDistributionRegistry(dist_kvstore)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue