Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Actually look up required remote server key IDs
Browse files Browse the repository at this point in the history
set.union() is a side-effect-free function that returns the union of two
sets. This clearly wanted .update(), which is the side-effecting mutator
version.
  • Loading branch information
Paul "LeoNerd" Evans committed Dec 18, 2015
1 parent f85949b commit a6ba41e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/crypto/keyring.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def do_iterations():

missing_keys = {}
for group in group_id_to_group.values():
missing_keys.setdefault(group.server_name, set()).union(group.key_ids)
missing_keys.setdefault(group.server_name, set()).update(
group.key_ids
)

for fn in key_fetch_fns:
results = yield fn(missing_keys.items())
Expand Down

0 comments on commit a6ba41e

Please sign in to comment.