mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Reduce the reconnect time when replication fails. (#6617)
This commit is contained in:
parent
0495097a7f
commit
6964ea095b
1
changelog.d/6617.misc
Normal file
1
changelog.d/6617.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Reduce the reconnect time when worker replication fails, to make it easier to catch up.
|
@ -46,7 +46,8 @@ class ReplicationClientFactory(ReconnectingClientFactory):
|
|||||||
is required.
|
is required.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
maxDelay = 30 # Try at least once every N seconds
|
initialDelay = 0.1
|
||||||
|
maxDelay = 1 # Try at least once every N seconds
|
||||||
|
|
||||||
def __init__(self, hs, client_name, handler: AbstractReplicationClientHandler):
|
def __init__(self, hs, client_name, handler: AbstractReplicationClientHandler):
|
||||||
self.client_name = client_name
|
self.client_name = client_name
|
||||||
|
Loading…
Reference in New Issue
Block a user