0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 16:13:50 +01:00

Merge pull request #844 from matrix-org/markjh/yield_on_sleep

Yield on the sleeps intended to backoff replication
This commit is contained in:
Mark Haines 2016-06-06 16:20:54 +01:00
commit 87f60e7053
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -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)