mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 10:46:24 +00:00
Get rid of hopefully unnecessary sort.
This commit is contained in:
parent
b658a66e7f
commit
e6a196c144
@ -152,7 +152,6 @@ class CiphertextFileNode(object):
|
|||||||
for server in servers:
|
for server in servers:
|
||||||
sm.add(shnum, server)
|
sm.add(shnum, server)
|
||||||
servers_responding.add(server)
|
servers_responding.add(server)
|
||||||
servers_responding = sorted(servers_responding, key=lambda o: id(o))
|
|
||||||
|
|
||||||
good_hosts = len(reduce(set.union, sm.values(), set()))
|
good_hosts = len(reduce(set.union, sm.values(), set()))
|
||||||
is_healthy = bool(len(sm) >= verifycap.total_shares)
|
is_healthy = bool(len(sm) >= verifycap.total_shares)
|
||||||
|
Loading…
Reference in New Issue
Block a user