Expand messaging, routing, measurement, storage, oracle, and time modules
Add subscription lease release-all and clear, intent router bulk unregister, bucket rate limit token probe, drive GC stale clear, oracle feed clear and latest aggregate, and temporal index remove/clear. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -106,6 +106,20 @@ class HyperP2PSubscriptionLease extends EventEmitter {
|
||||
return this.activeLeases().length
|
||||
}
|
||||
|
||||
releaseAll () {
|
||||
let n = 0
|
||||
for (const channel of this.listChannels()) {
|
||||
if (this.release(channel)) n++
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
clearAll () {
|
||||
const n = this._leases.size
|
||||
this._leases.clear()
|
||||
return n
|
||||
}
|
||||
|
||||
_expireSweep () {
|
||||
const now = Date.now()
|
||||
for (const [ch, lease] of this._leases) {
|
||||
|
||||
Reference in New Issue
Block a user