File tree Expand file tree Collapse file tree 2 files changed +710
-0
lines changed Expand file tree Collapse file tree 2 files changed +710
-0
lines changed Original file line number Diff line number Diff line change @@ -2202,3 +2202,17 @@ def _update_maintenance_events_config_for_connections(
2202
2202
with self ._lock :
2203
2203
for conn in tuple (self ._connections ):
2204
2204
conn .maintenance_events_config = maintenance_events_config
2205
+
2206
+ def _update_maintenance_events_configs_for_connections (
2207
+ self , maintenance_events_pool_handler
2208
+ ):
2209
+ """Override base class method to work with BlockingConnectionPool's structure."""
2210
+ with self ._lock :
2211
+ for conn in tuple (self ._connections ):
2212
+ if conn : # conn can be None in BlockingConnectionPool
2213
+ conn .set_maintenance_event_pool_handler (
2214
+ maintenance_events_pool_handler
2215
+ )
2216
+ conn .maintenance_events_config = (
2217
+ maintenance_events_pool_handler .config
2218
+ )
You can’t perform that action at this time.
0 commit comments