diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-12 18:17:11 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-12 18:17:11 +0000 |
commit | 963256638d5b3c3edee14bfbd7c00944b45d04c0 (patch) | |
tree | 1dea83e095f847f538dc0aa3b1aad47e55b60788 /synapse/handlers/federation.py | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-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.py | 12 |
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. |