Skip to content

Commit

Permalink
renamed registry to client_registry for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Dec 2, 2024
1 parent d722fc2 commit c76c703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x2s3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from starlette.exceptions import HTTPException as StarletteHTTPException

from x2s3.utils import *
from x2s3 import registry
from x2s3 import client_registry
from x2s3.settings import get_settings, Target

def create_app(settings):
Expand Down Expand Up @@ -55,7 +55,7 @@ async def startup_event():
logger.add(sys.stderr, level=app.settings.log_level)

logger.trace("Available protocols:")
for proto in registry.available_protocols():
for proto in client_registry.available_protocols():
logger.trace(f"- {proto}")

app.clients = {}
Expand All @@ -79,7 +79,7 @@ async def startup_event():
'target_name': target_name,
}

client = registry.client(target_config.client,
client = client_registry.client(target_config.client,
proxy_kwargs, **target_config.options)

if target_key in app.clients:
Expand Down
File renamed without changes.

0 comments on commit c76c703

Please sign in to comment.