From 705bb4551597f95e9507e3ee925adc9a1656add1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 17 Dec 2022 09:48:55 -0500 Subject: [PATCH] *Add heartbeat check for every heartbeat received --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 3d80901..4299a53 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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")}`); }