Enrich module APIs with snapshot and batch helpers across categories.
Adds snapshot(), domain batch methods, and clearAll aliases on consensus, core, encoding, experimental, indexes, messaging, network, oracle, pear, routing, storage, supercomputer, and trust modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -117,6 +117,14 @@ class HyperP2PQosTopic extends EventEmitter {
|
||||
return { handlers, pending }
|
||||
}
|
||||
|
||||
snapshot () {
|
||||
return {
|
||||
channels: this.listChannels(),
|
||||
queueDepths: this.queueDepths(),
|
||||
handlers: this.handlerCount()
|
||||
}
|
||||
}
|
||||
|
||||
_onGossip (data) {
|
||||
if (!data || data.type !== 'qos-publish') return
|
||||
this._stats.gossipIn++
|
||||
|
||||
Reference in New Issue
Block a user