*Add heartbeat check for every heartbeat received

This commit is contained in:
Derrick Hammer 2022-12-17 09:48:55 -05:00
parent dc1c9a1f82
commit 705bb45515
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ export default class DHTCache extends EventEmitter {
}); });
this._setEntity(bufId as Buffer, { heartbeat: Date.now() }); this._setEntity(bufId as Buffer, { heartbeat: Date.now() });
this._heartbeatCheck();
this.log.debug(`Heartbeat received from ${bufId.toString("hex")}`); this.log.debug(`Heartbeat received from ${bufId.toString("hex")}`);
} }