Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/SyTest/Homeserver/Synapse.pm
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ sub start
# There's no particular reason to choose client_reader, but I
# couldn't think of a better place and I'm not sure we want to add
# more workers at this point
to_device => $self->{redis_host} ne '' ? [ "client_reader" ] : "master",
to_device => $self->{redis_host} ne '' ? [ "client_reader" ] : "master",
account_data => $self->{redis_host} ne '' ? [ "client_reader" ] : "master",
receipts => $self->{redis_host} ne '' ? [ "client_reader" ] : "master",
},

# We use a high limit so the limit is never reached, but enabling the
Expand Down Expand Up @@ -1269,6 +1271,10 @@ EOCONFIG
$haproxy_map .= <<'EOCONFIG';

^/_matrix/client/(api/v1|r0|unstable)/sendToDevice/ client_reader
^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/tag client_reader
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this tags, not tag?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's /tag/:type and /tags$, and this (rather cheekily) covers both

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. 👍

^/_matrix/client/(api/v1|r0|unstable)/.*/account_data client_reader
^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/receipt client_reader
^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/read_markers client_reader

EOCONFIG
}
Expand Down