mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-08-31 00:47:15 +02:00
chore: apply gofumpt formatting
Pre-existing formatting drift picked up by `make fmt`. Whitespace and comment layout only, no semantic change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -382,8 +382,8 @@ func (l *Level) findLevel(selector []string) *Level {
|
||||
// - selector: Pattern to match (consumed recursively)
|
||||
// - offset: Metric index in metrics slice (from MetricConfig.offset)
|
||||
// - f: Callback invoked on each matching buffer; path holds the matched
|
||||
// level keys (e.g. ["cluster","node001","cpu0"]) so callers can
|
||||
// identify which node/component the buffer belongs to
|
||||
// level keys (e.g. ["cluster","node001","cpu0"]) so callers can
|
||||
// identify which node/component the buffer belongs to
|
||||
// - path: Accumulated level keys from the root; pass nil at the top level
|
||||
//
|
||||
// Returns:
|
||||
|
||||
@@ -104,8 +104,8 @@ func TestFreeViaProviderPrunesDeadNodes(t *testing.T) {
|
||||
const freq int64 = 60
|
||||
thr := time.Unix(100000, 0)
|
||||
|
||||
writeNode(ms, "fritz", "dead", nil, freq, 1000, 2000) // stale, not used -> pruned
|
||||
writeNode(ms, "fritz", "busy", nil, freq, 1000, 2000) // stale, but used -> kept
|
||||
writeNode(ms, "fritz", "dead", nil, freq, 1000, 2000) // stale, not used -> pruned
|
||||
writeNode(ms, "fritz", "busy", nil, freq, 1000, 2000) // stale, but used -> kept
|
||||
writeNode(ms, "fritz", "live", nil, freq, 100000, 100600) // fresh -> kept
|
||||
|
||||
ms.SetNodeProvider(&fakeNodeProvider{nodes: map[string][]string{"fritz": {"busy"}}})
|
||||
|
||||
Reference in New Issue
Block a user