mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 22:33:13 +09:00
Use controller.hosts.records for the host datastore (#520)
clusterio #1180 made controller.hosts a HostManager. The datastore with set and the update event now lives on controller.hosts.records. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d59e246278
commit
2cca280e30
3 files changed
+3
-3
No files matched your search
@@ -114,7 +114,7 @@ export default async function (context: ControllerPluginContext) {
|
||||
});
|
||||
|
||||
// The public address of a host arrives after it connects
|
||||
controller.hosts.on("update", hosts => {
|
||||
controller.hosts.records.on("update", hosts => {
|
||||
const hostIds = new Set(hosts.map(host => host.id));
|
||||
refresh([...controller.instances.values()].filter(instance => {
|
||||
const hostId = instance.config.get("instance.assigned_host");
|
||||
|
||||
Reference in new issue
Block a user