mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 12:54:53 -04:00
Fix event chain bg update. (#9118)
We passed in a graph to `sorted_topologically` which didn't have an entry for each node (as we dropped nodes with no edges).
This commit is contained in:
parent
d2479c6870
commit
1a08e0cdab
3 changed files with 10 additions and 1 deletions
|
@ -92,7 +92,7 @@ def sorted_topologically(
|
|||
node = heapq.heappop(zero_degree)
|
||||
yield node
|
||||
|
||||
for edge in reverse_graph[node]:
|
||||
for edge in reverse_graph.get(node, []):
|
||||
if edge in degree_map:
|
||||
degree_map[edge] -= 1
|
||||
if degree_map[edge] == 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue