We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6556e8a commit 063e795Copy full SHA for 063e795
redis/multidb/event.py
@@ -1,7 +1,6 @@
1
from typing import List
2
3
from redis.client import Redis
4
-from sphinx.events import EventListener
5
6
from redis.event import EventListenerInterface, OnCommandsFailEvent
7
from redis.multidb.database import SyncDatabase
@@ -64,6 +63,7 @@ def listen(self, event: ActiveDatabaseChanged):
64
63
event.old_database.client.close()
65
66
if isinstance(event.old_database.client, Redis):
+ event.old_database.client.connection_pool.update_active_connections_for_reconnect()
67
event.old_database.client.connection_pool.disconnect()
68
69
class RegisterCommandFailure(EventListenerInterface):
0 commit comments