refactor peer selection
This commit is contained in:
parent
9cab15e2cf
commit
b8d03ef913
|
@ -303,10 +303,10 @@ proc checkPeerCustody*(rman: RequestManager,
|
|||
remoteCustodySubnetCount))
|
||||
|
||||
for local_column in localCustodyColumns:
|
||||
if local_column in remoteCustodyColumns:
|
||||
return true
|
||||
else:
|
||||
if local_column notin remoteCustodyColumns:
|
||||
return false
|
||||
else:
|
||||
return true
|
||||
|
||||
else:
|
||||
return false
|
||||
|
|
|
@ -303,10 +303,10 @@ proc filterCustodyPeersBeforeColumnSync*(man: SyncManager,
|
|||
remoteCustodySubnetCount))
|
||||
|
||||
for local_column in localCustodyColumns:
|
||||
if local_column in remoteCustodyColumns:
|
||||
return true
|
||||
else:
|
||||
if local_column notin remoteCustodyColumns:
|
||||
return false
|
||||
else:
|
||||
return true
|
||||
|
||||
else:
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue