summary refs log tree commit diff
path: root/synapse/util/iterutils.py
diff options
context:
space:
mode:
authorJason Robinson <jasonr@matrix.org>2021-01-25 15:55:54 +0200
committerJason Robinson <jasonr@matrix.org>2021-01-25 15:55:54 +0200
commitfe18882bb5759133b8921b74d29d4a1906a69655 (patch)
treebfb3ff30c09f50e0e8458eaff698d8509bf23496 /synapse/util/iterutils.py
parentMerge branch 'develop' into jaywink/admin-forward-extremities (diff)
parentMerge tag 'v1.26.0rc2' into develop (diff)
downloadsynapse-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.py2
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