diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-09 15:59:08 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-09 15:59:08 +0100 |
commit | 52b2318777ac334480316b8a8ac2778367dcf53d (patch) | |
tree | 2dffc1d95cbcac5b9447a6045284565360c6730d /synapse/federation/federation_client.py | |
parent | Drop replication log levels (diff) | |
download | synapse-52b2318777ac334480316b8a8ac2778367dcf53d.tar.xz |
Clobber EDUs in send queue
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index 78719eed25..3395c9e41e 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -122,8 +122,12 @@ class FederationClient(FederationBase): pdu.event_id ) + def send_presence(self, destination, states): + if destination != self.server_name: + self._transaction_queue.enqueue_presence(destination, states) + @log_function - def send_edu(self, destination, edu_type, content): + def send_edu(self, destination, edu_type, content, key=None): edu = Edu( origin=self.server_name, destination=destination, @@ -134,7 +138,7 @@ class FederationClient(FederationBase): sent_edus_counter.inc() # TODO, add errback, etc. - self._transaction_queue.enqueue_edu(edu) + self._transaction_queue.enqueue_edu(edu, key=key) return defer.succeed(None) @log_function |