mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-25 12:46:24 -05:00
Enable passing typing stream writers as a list. (#11237)
This makes the typing stream writer config match the other stream writers that only currently support a single worker.
This commit is contained in:
parent
2735b3e6f2
commit
af54167516
8 changed files with 24 additions and 16 deletions
|
|
@ -328,8 +328,7 @@ class TypingStream(Stream):
|
|||
ROW_TYPE = TypingStreamRow
|
||||
|
||||
def __init__(self, hs: "HomeServer"):
|
||||
writer_instance = hs.config.worker.writers.typing
|
||||
if writer_instance == hs.get_instance_name():
|
||||
if hs.get_instance_name() in hs.config.worker.writers.typing:
|
||||
# On the writer, query the typing handler
|
||||
typing_writer_handler = hs.get_typing_writer_handler()
|
||||
update_function: Callable[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue