mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-02 05:56:43 -04:00
Disable event creation concurrency within rooms
This commit is contained in:
parent
393cdd4c97
commit
1e91ea1f39
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue