Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Force serialised creation of events per room
Browse files Browse the repository at this point in the history
The default is 5, which intentionally allows for forks in the room
DAGs at the cost of dummy events and expensive state resolution. This
actually causes more problems in large, busy rooms.
  • Loading branch information
Fizzadar committed Sep 8, 2022
1 parent eb60b71 commit f42c8f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,9 @@ def __init__(self, hs: "HomeServer"):

# 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")
# Beeper: limit changed from 5 -> 1, see:
# https://mau.dev/maunium/synapse/-/commit/d4ec0b6762852ce2e7e9a741db57ad459922c5a3
self.limiter = Linearizer(max_count=1, name="room_event_creation_limit")

self._bulk_push_rule_evaluator = hs.get_bulk_push_rule_evaluator()

Expand Down

0 comments on commit f42c8f5

Please sign in to comment.