File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1057,12 +1057,15 @@ class ConnectionPool:
1057
1057
``connection_class``.
1058
1058
"""
1059
1059
1060
- @abstractmethod
1061
1060
def cleanup (self , ** options ):
1062
1061
"""
1063
1062
Additional cleanup operations that the connection pool might
1064
- need to do after a SCAN ITER family command is executed
1063
+ need to do after a SCAN ITER family command is executed.
1064
+
1065
+ See SentinelManagedConnection for an example cleanup operation that
1066
+ might need to be done.
1065
1067
"""
1068
+ pass
1066
1069
1067
1070
@classmethod
1068
1071
def from_url (cls : Type [_CP ], url : str , ** kwargs ) -> _CP :
Original file line number Diff line number Diff line change @@ -1162,6 +1162,16 @@ def __repr__(self) -> (str, str):
1162
1162
f"({ repr (self .connection_class (** self .connection_kwargs ))} )>"
1163
1163
)
1164
1164
1165
+ def cleanup (self , ** options ):
1166
+ """
1167
+ Additional cleanup operations that the connection pool might
1168
+ need to do after a SCAN ITER family command is executed.
1169
+
1170
+ See SentinelManagedConnection for an example cleanup operation that
1171
+ might need to be done.
1172
+ """
1173
+ pass
1174
+
1165
1175
def reset (self ) -> None :
1166
1176
self ._lock = threading .Lock ()
1167
1177
self ._created_connections = 0
You can’t perform that action at this time.
0 commit comments