mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-26 09:44:17 +00:00
Yield on the sleeps intended to backoff replication
This commit is contained in:
@@ -311,7 +311,7 @@ class PusherServer(HomeServer):
|
||||
poke_pushers(result)
|
||||
except:
|
||||
logger.exception("Error replicating from %r", replication_url)
|
||||
sleep(30)
|
||||
yield sleep(30)
|
||||
|
||||
|
||||
def setup(config_options):
|
||||
|
||||
@@ -443,7 +443,7 @@ class SynchrotronServer(HomeServer):
|
||||
notify(result)
|
||||
except:
|
||||
logger.exception("Error replicating from %r", replication_url)
|
||||
sleep(5)
|
||||
yield sleep(5)
|
||||
|
||||
def build_presence_handler(self):
|
||||
return SynchrotronPresence(self)
|
||||
|
||||
Reference in New Issue
Block a user