Skip to content

Commit

Permalink
Update libp2p/connmanager.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
Menduist authored Dec 16, 2022
1 parent 6d95519 commit 3cf948c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libp2p/connmanager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ proc connCount*(c: ConnManager, peerId: PeerId): int =
c.conns.getOrDefault(peerId).len

proc connectedPeers*(c: ConnManager, dir: Direction): seq[PeerId] =
var peers = newSeq[PeerId]();
var peers = newSeq[PeerId]()
for peerId, conns in c.conns:
if conns.anyIt(it.dir == dir):
peers.add(peerId)
Expand Down

0 comments on commit 3cf948c

Please sign in to comment.