diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-03-20 16:02:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 16:02:25 +0000 |
commit | a902d131804890ee6cc4137a669be92ceb2253c4 (patch) | |
tree | 439196e5d19779f54a5018c3c6a38024aa5fd7c6 /synapse/handlers | |
parent | Merge pull request #4894 from matrix-org/erikj/postgres_tuning (diff) | |
download | synapse-a902d131804890ee6cc4137a669be92ceb2253c4.tar.xz |
Batch up outgoing read-receipts to reduce federation traffic. (#4890)
Rate-limit outgoing read-receipts as per #4730.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/receipts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/receipts.py b/synapse/handlers/receipts.py index dd783ae134..274d2946ad 100644 --- a/synapse/handlers/receipts.py +++ b/synapse/handlers/receipts.py @@ -118,7 +118,7 @@ class ReceiptsHandler(BaseHandler): if not is_new: return - self.federation.send_read_receipt(receipt) + yield self.federation.send_read_receipt(receipt) @defer.inlineCallbacks def get_receipts_for_room(self, room_id, to_key): |