diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-16 09:16:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 09:16:12 +0000 |
commit | 48c3a96886de64f3141ad68b8163cd2fc0c197ff (patch) | |
tree | e8d6629579e6f7fba216e31bba04cf05781d258c /synapse/federation | |
parent | Fix purge_room admin API (#6711) (diff) | |
download | synapse-48c3a96886de64f3141ad68b8163cd2fc0c197ff.tar.xz |
Port synapse.replication.tcp to async/await (#6666)
* Port synapse.replication.tcp to async/await * Newsfile * Correctly document type of on_<FOO> functions as async * Don't be overenthusiastic with the asyncing....
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/send_queue.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/federation/send_queue.py b/synapse/federation/send_queue.py index ced4925a98..174f6e42be 100644 --- a/synapse/federation/send_queue.py +++ b/synapse/federation/send_queue.py @@ -259,7 +259,9 @@ class FederationRemoteSendQueue(object): def federation_ack(self, token): self._clear_queue_before_pos(token) - def get_replication_rows(self, from_token, to_token, limit, federation_ack=None): + async def get_replication_rows( + self, from_token, to_token, limit, federation_ack=None + ): """Get rows to be sent over federation between the two tokens Args: |