Add removeKey() and deleteKey() helpers across keyed modules (eleventh pass).
Domain-aware removal aliases on modules with hasKey/getKey, including async indexes and no-op cases for grow-only and bloom filters. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -124,6 +124,14 @@ class HyperP2POverlayTopology extends EventEmitter {
|
||||
return this._neighbors.get(String(key)) ?? null
|
||||
}
|
||||
|
||||
removeKey (key) {
|
||||
return this.removeNeighbor(key)
|
||||
}
|
||||
|
||||
deleteKey (key) {
|
||||
return this.removeKey(key)
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return { ...this._stats, degree: this._neighbors.size, protocol: PROTOCOL }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user