diff --git a/src/index.ts b/src/index.ts index b16b4c9..5057e53 100644 --- a/src/index.ts +++ b/src/index.ts @@ -325,7 +325,7 @@ export default class DHTCache extends EventEmitter { } this.addPeerHandler({ - remotePublicKey: id, + remotePublicKey: bufId, }); this._setEntity(bufId as Buffer, { heartbeat: Date.now() });