mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-11 21:09:27 +00:00
nph fix
This commit is contained in:
parent
84322d3a14
commit
ef28c5f18e
@ -225,9 +225,9 @@ proc getPeersByShard*(
|
||||
peerStore: PeerStore, cluster, shard: uint16
|
||||
): seq[RemotePeerInfo] =
|
||||
return peerStore.peers().filterIt(
|
||||
(it.enr.isSome() and it.enr.get().containsShard(cluster, shard)) or
|
||||
it.shards.contains(shard)
|
||||
)
|
||||
(it.enr.isSome() and it.enr.get().containsShard(cluster, shard)) or
|
||||
it.shards.contains(shard)
|
||||
)
|
||||
|
||||
proc getPeersByCapability*(
|
||||
peerStore: PeerStore, cap: Capabilities
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user