Expand network, consensus, observability, storage, and pear modules
Add manual helpers across connection pool release/close, health probe clear and peer listing, quorum and distributed lock bulk operations, session rotation revoke-all, reputation peer reset, flow shaper flush, circuit breaker reset-all, RPC unregister and pending count, seeder registry topic management, activity queue clear, semantic vector remove, core priority fetch pending clear, trust gate untrust-all, and process spawn kill-all. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -207,6 +207,23 @@ class HyperP2PActivityQueue extends EventEmitter {
|
||||
return n
|
||||
}
|
||||
|
||||
clearAll () {
|
||||
const pending = this._queue.length
|
||||
const claimed = this._claimed.size
|
||||
const dead = this._deadLetter.length
|
||||
this._queue = []
|
||||
this._claimed.clear()
|
||||
this._deadLetter = []
|
||||
this._dedupe.clear()
|
||||
return { pending, claimed, dead }
|
||||
}
|
||||
|
||||
drainDeadLetters () {
|
||||
const out = [...this._deadLetter]
|
||||
this._deadLetter = []
|
||||
return out
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return {
|
||||
...this._stats,
|
||||
|
||||
Reference in New Issue
Block a user