*Add heartbeat check for every heartbeat received
This commit is contained in:
parent
dc1c9a1f82
commit
705bb45515
|
@ -333,6 +333,7 @@ export default class DHTCache extends EventEmitter {
|
|||
});
|
||||
|
||||
this._setEntity(bufId as Buffer, { heartbeat: Date.now() });
|
||||
this._heartbeatCheck();
|
||||
|
||||
this.log.debug(`Heartbeat received from ${bufId.toString("hex")}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue