diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-06 18:11:49 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-06 18:11:49 +0100 |
commit | 1200f28d661747a019d2f33bd5623c7bc635c59e (patch) | |
tree | 2c050e75f879921964990695d59c876aa2f51fb9 /synapse/handlers/message.py | |
parent | Merge branch 'release-v0.22.0' of github.com:matrix-org/synapse (diff) | |
parent | Bump version and changelog (diff) | |
download | synapse-0.22.1.tar.xz |
Merge branch 'hotfixes-v0.22.1' of github.com:matrix-org/synapse v0.22.1
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 24c9ffdb20..be4f123c54 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -50,6 +50,8 @@ class MessageHandler(BaseHandler): self.pagination_lock = ReadWriteLock() + self.pusher_pool = hs.get_pusherpool() + # We arbitrarily limit concurrent event creation for a room to 5. # This is to stop us from diverging history *too* much. self.limiter = Limiter(max_count=5) @@ -610,7 +612,7 @@ class MessageHandler(BaseHandler): # this intentionally does not yield: we don't care about the result # and don't need to wait for it. - preserve_fn(self.hs.get_pusherpool().on_new_notifications)( + preserve_fn(self.pusher_pool.on_new_notifications)( event_stream_id, max_stream_id ) |