summary refs log tree commit diff
path: root/synapse/handlers/receipts.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-03-20 16:02:25 +0000
committerGitHub <noreply@github.com>2019-03-20 16:02:25 +0000
commita902d131804890ee6cc4137a669be92ceb2253c4 (patch)
tree439196e5d19779f54a5018c3c6a38024aa5fd7c6 /synapse/handlers/receipts.py
parentMerge pull request #4894 from matrix-org/erikj/postgres_tuning (diff)
downloadsynapse-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/receipts.py')
-rw-r--r--synapse/handlers/receipts.py2
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):