feat(supercomputer,experimental): expand thermal, RAM, disk, paradox APIs
Thermal hottest peer and sample clear, RAM pool reset, disk stripe missing shards, paradox clock/merge helpers, mycelium top donors. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -85,6 +85,16 @@ class HyperP2PRamPool extends EventEmitter {
|
||||
|
||||
listLeases () { return [...this._leases.values()] }
|
||||
|
||||
resetPool () {
|
||||
this._pool.clear()
|
||||
this._leases.clear()
|
||||
this.emit('reset')
|
||||
}
|
||||
|
||||
leaseFor (leaseId) {
|
||||
return this._leases.get(String(leaseId)) || null
|
||||
}
|
||||
|
||||
async ready () {
|
||||
if (this.swarm || !this.topic) return this
|
||||
await initModuleSwarm(this, {
|
||||
|
||||
Reference in New Issue
Block a user