mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 03:35:10 +00:00
Start pushers on reactor thread
This commit is contained in:
parent
3864b3a8e6
commit
46daf2d200
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,8 @@ from twisted.internet import defer
|
|||
from httppusher import HttpPusher
|
||||
from synapse.push import PusherConfigException
|
||||
|
||||
from synapse.util.async import run_on_reactor
|
||||
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -48,6 +50,7 @@ class PusherPool:
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def start(self):
|
||||
yield run_on_reactor()
|
||||
pushers = yield self.store.get_all_pushers()
|
||||
self._start_pushers(pushers)
|
||||
|
||||
|
|
Loading…
Reference in a new issue