mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 07:00:51 +03:00
Make to_s_neighbours set
This commit is contained in:
parent
66450785d8
commit
1a64c21301
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,7 @@ class OrderedListStore(object):
|
|||
to_s_indegree += l_s
|
||||
|
||||
if to_s_neighbours:
|
||||
to_s_neighbours = list(set(to_s_neighbours))
|
||||
to_s_neighbours.sort()
|
||||
_, s = to_s_neighbours.pop()
|
||||
else:
|
||||
|
@ -132,6 +133,7 @@ class OrderedListStore(object):
|
|||
from_t_outdegree += l_t
|
||||
|
||||
if from_t_neighbours:
|
||||
from_t_neighbours = list(set(from_t_neighbours))
|
||||
from_t_neighbours.sort(reverse=True)
|
||||
_, t = from_t_neighbours.pop()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue