*Change heartbeat check to 1/4 the heartBeatInterval rate
This commit is contained in:
parent
ef4a6f60e9
commit
dc1c9a1f82
|
@ -75,7 +75,10 @@ export default class DHTCache extends EventEmitter {
|
|||
});
|
||||
|
||||
this._ensurePeer(this.id);
|
||||
setInterval(() => this._heartbeatCheck(), 5 * 1000);
|
||||
setInterval(
|
||||
() => this._heartbeatCheck(),
|
||||
(this.heartBeatInterval / 4) * 1000
|
||||
);
|
||||
setInterval(() => this._emitHeartbeat(), this.heartBeatInterval * 1000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue