Disable event creation concurrency within rooms

This commit is contained in:
Tulir Asokan 2023-02-12 15:02:58 +02:00
parent 393cdd4c97
commit 1e91ea1f39

View File

@ -501,7 +501,9 @@ class EventCreationHandler:
# We arbitrarily limit concurrent event creation for a room to 5.
# This is to stop us from diverging history *too* much.
self.limiter = Linearizer(max_count=5, name="room_event_creation_limit")
# meow: there seems to be no reason to allow any more than one event to be created at once.
# it just creates unnecessary state resolution without any performance improvements.
self.limiter = Linearizer(max_count=1, name="room_event_creation_limit")
self._bulk_push_rule_evaluator = hs.get_bulk_push_rule_evaluator()