fix: peer connected counter
This commit is contained in:
parent
7526e205e2
commit
ffb84a8fbb
|
@ -173,7 +173,7 @@ export const usePeers = (params: UsePeersParams): UsePeersResults => {
|
|||
|
||||
const listener = async () => {
|
||||
const peers = await Promise.all([
|
||||
node?.libp2p.getConnections().map((c) => c.remotePeer),
|
||||
node?.libp2p.getPeers(),
|
||||
handleCatch(node?.store?.peers()),
|
||||
handleCatch(node?.filter?.peers()),
|
||||
handleCatch(node?.lightPush?.peers()),
|
||||
|
|
Loading…
Reference in New Issue