File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -339,10 +339,11 @@ def master_for(
339
339
connection_pool = connection_pool_class (service_name , self , ** connection_kwargs )
340
340
# The Redis object "owns" the pool
341
341
auto_close_connection_pool = True
342
- return redis_class (
342
+ client = redis_class (
343
343
connection_pool = connection_pool ,
344
- auto_close_connection_pool = auto_close_connection_pool ,
345
344
)
345
+ client .auto_close_connection_pool = auto_close_connection_pool
346
+ return client
346
347
347
348
def slave_for (
348
349
self ,
@@ -375,7 +376,9 @@ def slave_for(
375
376
connection_pool = connection_pool_class (service_name , self , ** connection_kwargs )
376
377
# The Redis object "owns" the pool
377
378
auto_close_connection_pool = True
378
- return redis_class (
379
+ client = redis_class (
379
380
connection_pool = connection_pool ,
380
- auto_close_connection_pool = auto_close_connection_pool ,
381
381
)
382
+ client .auto_close_connection_pool = auto_close_connection_pool
383
+ return client
384
+
You can’t perform that action at this time.
0 commit comments