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

Commit

Permalink
Allow multiple receipt writers
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Oct 5, 2023
1 parent 342d634 commit e7acc24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/config/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
"Must only specify one instance to handle `account_data` messages."
)

if len(self.writers.receipts) != 1:
if len(self.writers.receipts) == 0:
raise ConfigError(
"Must only specify one instance to handle `receipts` messages."
"Must specify at least one instance to handle `receipts` messages."
)

if len(self.writers.events) == 0:
Expand Down

0 comments on commit e7acc24

Please sign in to comment.