This commit is contained in:
Erik Johnston 2016-11-11 10:42:08 +00:00
parent 2bd4513a4d
commit 64038b806c
2 changed files with 15 additions and 0 deletions

View file

@ -50,6 +50,8 @@ class MessageHandler(BaseHandler):
self.pagination_lock = ReadWriteLock()
# 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)
@defer.inlineCallbacks