mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 23:33:12 +09:00
Use controller.hosts.records for the host datastore (#59)
clusterio #1180 made controller.hosts a HostManager. The datastore with set and the update event now lives on controller.hosts.records. Co-authored-by: bbassie <17990055+bbassie@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -41,7 +41,7 @@ async function startPlugin(t2, { config = {}, canRestart = false } = {}) {
|
||||
}
|
||||
|
||||
function addHost(controller, id, connected = true) {
|
||||
controller.hosts.set(new HostRecord(id, `host-${id}`, "2.0.0", new Map(), connected));
|
||||
controller.hosts.records.set(new HostRecord(id, `host-${id}`, "2.0.0", new Map(), connected));
|
||||
}
|
||||
|
||||
function addInstance(controller, id, hostId, status = "running", fields = {}) {
|
||||
|
||||
Reference in new issue
Block a user