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 @@ -1156,6 +1156,16 @@ def __repr__(self) -> (str, str):
1156
1156
f"({ repr (self .connection_class (** self .connection_kwargs ))} )>"
1157
1157
)
1158
1158
1159
+ def cleanup (self , ** options ):
1160
+ """
1161
+ Additional cleanup operations that the connection pool might
1162
+ need to do after a SCAN ITER family command is executed.
1163
+
1164
+ See SentinelManagedConnection for an example cleanup operation that
1165
+ might need to be done.
1166
+ """
1167
+ pass
1168
+
1159
1169
def reset (self ) -> None :
1160
1170
self ._lock = threading .Lock ()
1161
1171
self ._created_connections = 0
You can’t perform that action at this time.
0 commit comments