mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Increase the max delay between retry attempts
Otherwise if you have many workers they can easily take out master with their connection attempts
This commit is contained in:
parent
313987187e
commit
25814921f1
@ -39,7 +39,7 @@ class ReplicationClientFactory(ReconnectingClientFactory):
|
|||||||
Accepts a handler that will be called when new data is available or data
|
Accepts a handler that will be called when new data is available or data
|
||||||
is required.
|
is required.
|
||||||
"""
|
"""
|
||||||
maxDelay = 5 # Try at least once every N seconds
|
maxDelay = 30 # Try at least once every N seconds
|
||||||
|
|
||||||
def __init__(self, hs, client_name, handler):
|
def __init__(self, hs, client_name, handler):
|
||||||
self.client_name = client_name
|
self.client_name = client_name
|
||||||
|
Loading…
Reference in New Issue
Block a user