File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
django_valkey/async_cache Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class AsyncConnectionFactory(BaseConnectionFactory[AValkey, ConnectionPool]):
1616 path_pool_cls = "valkey.asyncio.connection.ConnectionPool"
1717 path_base_cls = "valkey.asyncio.client.Valkey"
1818
19- async def disconnect (self , connection : type [AValkey ] | type ) -> None :
19+ async def disconnect (self , connection : type [AValkey ]) -> None :
2020 await connection .connection_pool .disconnect ()
2121
2222 def get_parser_cls (self ) -> type [DefaultParser ] | type :
@@ -57,11 +57,11 @@ def __init__(self, options: dict):
5757 ** connection_kwargs ,
5858 )
5959
60- async def get_connection_pool (self , params : dict ) -> ConnectionPool | Any :
60+ def get_connection_pool (self , params : dict ) -> ConnectionPool | Any :
6161 url = urlparse (params ["url" ])
6262 cp_params = params
6363 cp_params .update (service_name = url .hostname , sentinel_manager = self ._sentinel )
64- pool = await super ().get_connection_pool (cp_params )
64+ pool = super ().get_connection_pool (cp_params )
6565
6666 is_master = parse_qs (url .query ).get ("is_master" )
6767 if is_master :
You can’t perform that action at this time.
0 commit comments