summary refs log tree commit diff
path: root/synapse/appservice/scheduler.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-09 17:01:19 +0000
committerKegan Dougal <kegan@matrix.org>2015-03-09 17:01:19 +0000
commit21fd84dcb8645a555cc35adb8b2a5a68536b8087 (patch)
treeb400ce68a36fcd01e3f4fca568a43f6ae55e9a36 /synapse/appservice/scheduler.py
parentFinish appservice txn storage impl and tests. (diff)
downloadsynapse-21fd84dcb8645a555cc35adb8b2a5a68536b8087.tar.xz
Use seconds; start gluing in the AS scheduler into the AS handler.
Diffstat (limited to 'synapse/appservice/scheduler.py')
-rw-r--r--synapse/appservice/scheduler.py4
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):