refactor peer selection

This commit is contained in:
Agnish Ghosh 2024-09-30 22:17:30 +05:30
parent 9cab15e2cf
commit b8d03ef913
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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