mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 06:54:54 -04:00
Add ability to run multiple pusher instances (#7855)
This reuses the same scheme as federation sender sharding
This commit is contained in:
parent
a827838706
commit
649a7ead5c
9 changed files with 293 additions and 82 deletions
|
@ -78,7 +78,7 @@ class PerDestinationQueue(object):
|
|||
self._federation_shard_config = hs.config.federation.federation_shard_config
|
||||
|
||||
self._should_send_on_this_instance = True
|
||||
if not self._federation_shard_config.should_send_to(
|
||||
if not self._federation_shard_config.should_handle(
|
||||
self._instance_name, destination
|
||||
):
|
||||
# We don't raise an exception here to avoid taking out any other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue