From 98f829e949fbe3555f9580fa500b6bb628091cb3 Mon Sep 17 00:00:00 2001 From: Cayman Date: Mon, 14 Nov 2022 19:14:20 -0500 Subject: [PATCH] fix: unbound event listener --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index eeee7dbe..fa601a6d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -879,7 +879,7 @@ export class GossipSub extends EventEmitter implements PubSub): void { + private onPeerAddressChange = (evt: CustomEvent): void => { const { peerId, multiaddrs, oldMultiaddrs } = evt.detail const newIps = new Set() const oldIps = new Set()