summary refs log tree commit diff
path: root/synapse/federation/sender/__init__.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-10 18:54:03 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-10 18:54:03 +0000
commitc9eb99d25ba6182c5481858b3f95e58aea9f6188 (patch)
tree0c5be2aeb7bcfbb3eb948ea218fbe3a7eaeb1436 /synapse/federation/sender/__init__.py
parentOnly count non-cache state resolution (diff)
parentAdd experimental option to reduce extremities. (diff)
downloadsynapse-c9eb99d25ba6182c5481858b3f95e58aea9f6188.tar.xz
Add experimental option to reduce extremities.
Diffstat (limited to 'synapse/federation/sender/__init__.py')
-rw-r--r--synapse/federation/sender/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py

index 4f0f939102..4224b29ecf 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py
@@ -168,6 +168,9 @@ class FederationSender(object): if not is_mine and send_on_behalf_of is None: return + if not event.internal_metadata.should_proactively_send(): + return + try: # Get the state from before the event. # We need to make sure that this is the state from before