@@ -63,8 +63,7 @@ def _connect_retry(self, same_address: bool = False):
63
63
64
64
def connect (self ):
65
65
return self .retry .call_with_retry (
66
- lambda : self ._connect_retry (),
67
- lambda error : None
66
+ lambda : self ._connect_retry (), lambda error : None
68
67
)
69
68
70
69
def connect_to_same_address (self ):
@@ -73,8 +72,7 @@ def connect_to_same_address(self):
73
72
it just connects to the same address of the connection object.
74
73
"""
75
74
return self .retry .call_with_retry (
76
- lambda : self ._connect_retry (same_address = True ),
77
- lambda error : None
75
+ lambda : self ._connect_retry (same_address = True ), lambda error : None
78
76
)
79
77
80
78
def connect_to_address (self , address ):
@@ -269,9 +267,7 @@ def cleanup(self, **options):
269
267
"""
270
268
Remove the SCAN ITER family command's request id from the dictionary
271
269
"""
272
- self ._iter_req_id_to_replica_address .pop (
273
- options .get ("iter_req_id" , None ), None
274
- )
270
+ self ._iter_req_id_to_replica_address .pop (options .get ("iter_req_id" , None ), None )
275
271
276
272
def get_connection (
277
273
self , command_name : str , * keys : Any , ** options : Any
0 commit comments