fix: peer connected counter

This commit is contained in:
danisharora099 2023-09-04 18:31:12 +05:30
parent 7526e205e2
commit ffb84a8fbb
No known key found for this signature in database
GPG Key ID: FBD2BF500037F135
1 changed files with 1 additions and 1 deletions

View File

@ -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()),