mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 01:04:48 -04:00
Send USER_IP
commands on a different Redis channel, in order to reduce traffic to workers that do not process these commands. (#12809)
This commit is contained in:
parent
10280fc943
commit
39dee30f01
5 changed files with 17 additions and 4 deletions
|
@ -221,10 +221,10 @@ class RedisSubscriber(txredisapi.SubscriberProtocol):
|
|||
# remote instances.
|
||||
tcp_outbound_commands_counter.labels(cmd.NAME, "redis").inc()
|
||||
|
||||
channel_name = cmd.redis_channel_name(self.synapse_stream_prefix)
|
||||
|
||||
await make_deferred_yieldable(
|
||||
self.synapse_outbound_redis_connection.publish(
|
||||
self.synapse_stream_prefix, encoded_string
|
||||
)
|
||||
self.synapse_outbound_redis_connection.publish(channel_name, encoded_string)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue