summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-12 18:17:11 +0000
committerErik Johnston <erik@matrix.org>2015-02-12 18:17:11 +0000
commit963256638d5b3c3edee14bfbd7c00944b45d04c0 (patch)
tree1dea83e095f847f538dc0aa3b1aad47e55b60788 /synapse/handlers/federation.py
parentMerge branch 'master' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-963256638d5b3c3edee14bfbd7c00944b45d04c0.tar.xz
Correctly handle all the places that can throw exceptions
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 77c81fe2da..5a7593cc3b 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -789,6 +789,18 @@ class FederationHandler(BaseHandler):
         defer.returnValue(ret)
 
     @defer.inlineCallbacks
+    def trigger_query_auth(self, destination, event_id):
+        local_auth_chain = yield self.store.get_auth_chain([event_id])
+
+        result = yield self.replication_layer.query_auth(
+            destination,
+            event.room_id,
+            event.event_id,
+            local_auth_chain,
+        )
+
+
+    @defer.inlineCallbacks
     @log_function
     def do_auth(self, origin, event, context, auth_events):
         # Check if we have all the auth events.