diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-03-09 17:01:19 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-03-09 17:01:19 +0000 |
commit | 21fd84dcb8645a555cc35adb8b2a5a68536b8087 (patch) | |
tree | b400ce68a36fcd01e3f4fca568a43f6ae55e9a36 /synapse/appservice | |
parent | Finish appservice txn storage impl and tests. (diff) | |
download | synapse-21fd84dcb8645a555cc35adb8b2a5a68536b8087.tar.xz |
Use seconds; start gluing in the AS scheduler into the AS handler.
Diffstat (limited to 'synapse/appservice')
-rw-r--r-- | synapse/appservice/scheduler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py index ee5978da6e..068d4bd087 100644 --- a/synapse/appservice/scheduler.py +++ b/synapse/appservice/scheduler.py @@ -132,7 +132,7 @@ class _TransactionController(object): txn.complete(self.store) else: self._start_recoverer(service) - self.clock.call_later(1000, self.start_polling) + self.clock.call_later(1, self.start_polling) @defer.inlineCallbacks def on_recovered(self, recoverer): @@ -202,7 +202,7 @@ class _Recoverer(object): self.backoff_counter = 1 def recover(self): - self.clock.call_later(1000 * (2 ** self.backoff_counter), self.retry) + self.clock.call_later((2 ** self.backoff_counter), self.retry) @defer.inlineCallbacks def retry(self): |