From c4321d302669c44719734f483770be5987246583 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 26 Nov 2022 18:48:00 -0500 Subject: [PATCH] *Pass id property, not variable --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9304c2f..5591d52 100644 --- a/src/index.ts +++ b/src/index.ts @@ -68,7 +68,7 @@ export default class DHTCache extends EventEmitter { this.addPeerHandler(item); }); - this._ensurePeer(id); + this._ensurePeer(this.id); } private _cache: Set;