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 @@ -2209,3 +2209,17 @@ def _update_maintenance_events_config_for_connections(
2209
2209
with self ._lock :
2210
2210
for conn in tuple (self ._connections ):
2211
2211
conn .maintenance_events_config = maintenance_events_config
2212
+
2213
+ def _update_maintenance_events_configs_for_connections (
2214
+ self , maintenance_events_pool_handler
2215
+ ):
2216
+ """Override base class method to work with BlockingConnectionPool's structure."""
2217
+ with self ._lock :
2218
+ for conn in tuple (self ._connections ):
2219
+ if conn : # conn can be None in BlockingConnectionPool
2220
+ conn .set_maintenance_event_pool_handler (
2221
+ maintenance_events_pool_handler
2222
+ )
2223
+ conn .maintenance_events_config = (
2224
+ maintenance_events_pool_handler .config
2225
+ )
You can’t perform that action at this time.
0 commit comments