mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-16 23:59:12 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -39,6 +39,7 @@ class ReplicationClientFactory(ReconnectingClientFactory):
|
|||
Accepts a handler that will be called when new data is available or data
|
||||
is required.
|
||||
"""
|
||||
|
||||
maxDelay = 30 # Try at least once every N seconds
|
||||
|
||||
def __init__(self, hs, client_name, handler):
|
||||
|
@ -64,9 +65,7 @@ class ReplicationClientFactory(ReconnectingClientFactory):
|
|||
|
||||
def clientConnectionFailed(self, connector, reason):
|
||||
logger.error("Failed to connect to replication: %r", reason)
|
||||
ReconnectingClientFactory.clientConnectionFailed(
|
||||
self, connector, reason
|
||||
)
|
||||
ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
|
||||
|
||||
|
||||
class ReplicationClientHandler(object):
|
||||
|
@ -74,6 +73,7 @@ class ReplicationClientHandler(object):
|
|||
|
||||
By default proxies incoming replication data to the SlaveStore.
|
||||
"""
|
||||
|
||||
def __init__(self, store):
|
||||
self.store = store
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue