diff options
author | Jason Robinson <jasonr@matrix.org> | 2021-01-25 15:55:54 +0200 |
---|---|---|
committer | Jason Robinson <jasonr@matrix.org> | 2021-01-25 15:55:54 +0200 |
commit | fe18882bb5759133b8921b74d29d4a1906a69655 (patch) | |
tree | bfb3ff30c09f50e0e8458eaff698d8509bf23496 /synapse/util/iterutils.py | |
parent | Merge branch 'develop' into jaywink/admin-forward-extremities (diff) | |
parent | Merge tag 'v1.26.0rc2' into develop (diff) | |
download | synapse-fe18882bb5759133b8921b74d29d4a1906a69655.tar.xz |
Merge remote-tracking branch 'origin/develop' into jaywink/admin-forward-extremities
Diffstat (limited to 'synapse/util/iterutils.py')
-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 |