Skip to content
Snippets Groups Projects
Commit d2fc5916 authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #282 from matrix-org/erikj/missing_keys

Fix bug where we sometimes didn't fetch all the keys requested for a server.
parents dc6094b9 ffe8cf7e
No related branches found
No related tags found
No related merge requests found
...@@ -228,10 +228,9 @@ class Keyring(object): ...@@ -228,10 +228,9 @@ class Keyring(object):
def do_iterations(): def do_iterations():
merged_results = {} merged_results = {}
missing_keys = { missing_keys = {}
group.server_name: set(group.key_ids) for group in group_id_to_group.values():
for group in group_id_to_group.values() missing_keys.setdefault(group.server_name, set()).union(group.key_ids)
}
for fn in key_fetch_fns: for fn in key_fetch_fns:
results = yield fn(missing_keys.items()) results = yield fn(missing_keys.items())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment