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CAAC,YAAY;IA8CpB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,WAAW;IA0BnB,OAAO,CAAC,eAAe;IA0BvB,OAAO,CAAC,cAAc;CA2BvB"}
|
|
@ -238,6 +238,7 @@ class DHTCache extends events_1.default {
|
||||||
else if (type === messages_js_1.Type.BOOTSTRAP_RESPONSE) {
|
else if (type === messages_js_1.Type.BOOTSTRAP_RESPONSE) {
|
||||||
const { bootstrap } = decoded;
|
const { bootstrap } = decoded;
|
||||||
this._bootstrapFrom(bootstrap);
|
this._bootstrapFrom(bootstrap);
|
||||||
|
this.log.debug(`Bootstrap response received`);
|
||||||
}
|
}
|
||||||
else if (type === messages_js_1.Type.HEARTBEAT) {
|
else if (type === messages_js_1.Type.HEARTBEAT) {
|
||||||
const { id: toId, signature, data: bufData } = decoded;
|
const { id: toId, signature, data: bufData } = decoded;
|
||||||
|
@ -247,7 +248,7 @@ class DHTCache extends events_1.default {
|
||||||
}
|
}
|
||||||
this._addEntityConnection(id, bufId);
|
this._addEntityConnection(id, bufId);
|
||||||
this._setEntity(bufId, { heartbeat: Date.now() });
|
this._setEntity(bufId, { heartbeat: Date.now() });
|
||||||
this.log.debug(`Bootstrap response received from ${bufId.toString("hex")}`);
|
this.log.debug(`Heartbeat received from ${bufId.toString("hex")}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_signItem(item) {
|
_signItem(item) {
|
||||||
|
|
Loading…
Reference in New Issue