diff options
author | Dan Callahan <danc@element.io> | 2021-01-26 15:38:22 +0000 |
---|---|---|
committer | Dan Callahan <danc@element.io> | 2021-01-26 15:38:22 +0000 |
commit | a06dd1d6b5a36a473ad58c186cac61ba929dc154 (patch) | |
tree | 5a8d355e61b47803acbc8cfabf391b4059b29dcf /synapse/util/iterutils.py | |
parent | Fix state endpoint to be faster (diff) | |
parent | Tweak changes. (diff) | |
download | synapse-travis/fosdem/hotfixes.tar.xz |
Merge tag 'v1.26.0rc2' into travis/fosdem/hotfixes github/travis/fosdem/hotfixes travis/fosdem/hotfixes
Diffstat (limited to '')
-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 |