feat(node): add Info structure to save every nodes system information

feat(processor): add /info <uuid> command to show basic system info for specific node
This commit is contained in:
2026-08-07 22:31:02 +08:00
parent 56ed32ac0c
commit ebbbe7ba1d
5 changed files with 151 additions and 27 deletions
+1 -5
View File
@@ -261,11 +261,7 @@ func startBackgroundTasks(_ *config.Config) {
}
tracker := node.GetTracker()
if tracker != nil {
nodeNames := make(map[string]string, len(nodes))
for _, n := range nodes {
nodeNames[n.UUID] = n.Name
}
tracker.UpdateNodeList(nodeNames)
tracker.UpdateNodeList(komari.BuildNodeListData(nodes))
}
}
}()