*Prune graph on node disconnect
This commit is contained in:
parent
1404c2b073
commit
9350daee68
|
@ -263,6 +263,7 @@ export default class DHTCache extends EventEmitter {
|
|||
this._removeEntityConnection(id, b4a.from(toId as Uint8Array) as Buffer);
|
||||
this.emit("peer-remove-seen", id, toId);
|
||||
this._recalculate();
|
||||
this._pruneItems();
|
||||
} else if (type === Type.BOOTSTRAP_REQUEST) {
|
||||
const bootstrap = this._getBootstrapInfo();
|
||||
this.broadcast(
|
||||
|
|
Loading…
Reference in New Issue