Skip to content

Commit c76c703

Browse files
committed
renamed registry to client_registry for clarity
1 parent d722fc2 commit c76c703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x2s3/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from starlette.exceptions import HTTPException as StarletteHTTPException
1313

1414
from x2s3.utils import *
15-
from x2s3 import registry
15+
from x2s3 import client_registry
1616
from x2s3.settings import get_settings, Target
1717

1818
def create_app(settings):
@@ -55,7 +55,7 @@ async def startup_event():
5555
logger.add(sys.stderr, level=app.settings.log_level)
5656

5757
logger.trace("Available protocols:")
58-
for proto in registry.available_protocols():
58+
for proto in client_registry.available_protocols():
5959
logger.trace(f"- {proto}")
6060

6161
app.clients = {}
@@ -79,7 +79,7 @@ async def startup_event():
7979
'target_name': target_name,
8080
}
8181

82-
client = registry.client(target_config.client,
82+
client = client_registry.client(target_config.client,
8383
proxy_kwargs, **target_config.options)
8484

8585
if target_key in app.clients:

0 commit comments

Comments
 (0)