File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class Settings(BaseSettings):
2323
2424 env : ServiceEnvironment = ServiceEnvironment .LOCAL
2525 anyvar_uri : str = "http://localhost:8000"
26+ storage_uri : str = "postgresql://postgres@localhost:5432/anyvlm"
2627
2728
2829@cache
Original file line number Diff line number Diff line change 33import logging
44from collections .abc import AsyncGenerator
55from contextlib import asynccontextmanager
6- from os import environ
76from urllib .parse import urlparse
87
98from anyvar .anyvar import create_storage , create_translator
2019 ServiceOrganization ,
2120 ServiceType ,
2221)
23- from anyvlm .storage import DEFAULT_STORAGE_URI
2422from anyvlm .storage .base_storage import Storage
2523from anyvlm .utils .types import (
2624 EndpointTag ,
@@ -68,7 +66,7 @@ def create_anyvlm_storage(uri: str | None = None) -> Storage:
6866 :return: AnyVLM storage instance
6967 """
7068 if not uri :
71- uri = environ . get ( "ANYVLM_STORAGE_URI" , DEFAULT_STORAGE_URI )
69+ uri = get_config (). storage_uri
7270
7371 parsed_uri = urlparse (uri )
7472 if parsed_uri .scheme == "postgresql" :
Original file line number Diff line number Diff line change 22
33from .base_storage import Storage
44
5- DEFAULT_STORAGE_URI = "postgresql://postgres@localhost:5432/anyvlm"
6-
7- __all__ = ["DEFAULT_STORAGE_URI" , "Storage" ]
5+ __all__ = ["Storage" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments