mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 05:43:07 +00:00
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 listener = async () => {
|
||||||
const peers = await Promise.all([
|
const peers = await Promise.all([
|
||||||
node?.libp2p.getConnections().map((c) => c.remotePeer),
|
node?.libp2p.getPeers(),
|
||||||
handleCatch(node?.store?.peers()),
|
handleCatch(node?.store?.peers()),
|
||||||
handleCatch(node?.filter?.peers()),
|
handleCatch(node?.filter?.peers()),
|
||||||
handleCatch(node?.lightPush?.peers()),
|
handleCatch(node?.lightPush?.peers()),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user