diff options
author | Erik Johnston <erik@matrix.org> | 2021-01-22 19:44:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 19:44:08 +0000 |
commit | 056327457ff471495741a539e99c840ed54afccd (patch) | |
tree | 5610162fa592de2044da062ba5a836d9329e2fa0 /synapse | |
parent | Bump psycopg2 version (#9204) (diff) | |
download | synapse-056327457ff471495741a539e99c840ed54afccd.tar.xz |
Fix chain cover update to handle events with duplicate auth events (#9210)
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/util/iterutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/iterutils.py b/synapse/util/iterutils.py index 6ef2b008a4..8d2411513f 100644 --- a/synapse/util/iterutils.py +++ b/synapse/util/iterutils.py @@ -78,7 +78,7 @@ def sorted_topologically( if node not in degree_map: continue - for edge in edges: + for edge in set(edges): if edge in degree_map: degree_map[node] += 1 |