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;