0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-01 18:28:56 +02:00

SYN-383: Extract the response list from 'server_keys' in the response JSON as it might work better than iterating over the top level dict

This commit is contained in:
Mark Haines 2015-05-19 10:23:02 +01:00
parent 99914ec9f8
commit c6a03c46e6

View file

@ -188,7 +188,7 @@ class Keyring(object):
# TODO(mark): Set the minimum_valid_until_ts to that needed by
# the events being validated or the current time if validating
# an incoming request.
responses = yield self.client.post_json(
query_response = yield self.client.post_json(
destination=perspective_name,
path=b"/_matrix/key/v2/query",
data={
@ -204,6 +204,8 @@ class Keyring(object):
keys = {}
responses = query_response["server_keys"]
for response in responses:
if (u"signatures" not in response
or perspective_name not in response[u"signatures"]):