From f0f58732024cbc4b0151d8542e7e8d16e5666d6a Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 5 Oct 2026 22:27:32 +0200 Subject: [PATCH] Keep unitKey's comment on unitKey --- internal/apply/apply.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/apply/apply.go b/internal/apply/apply.go index 4bb1871..292e4eb 100644 --- a/internal/apply/apply.go +++ b/internal/apply/apply.go @@ -2852,9 +2852,6 @@ func userUnitFiles(account, unit string) []string { return paths } -// unitKey names a unit by the manager it is in and its name (novox/hq ADR 0177): the machine's -// manager, or one account's. A system unit is the same key whether its record says "system" or -// nothing, as every record before the scope existed does. // unitsHeld is every unit a declared service gives a state, by unitKey, naming the service. func unitsHeld(resources []declaration.Resource) map[string]string { held := map[string]string{} @@ -2866,6 +2863,9 @@ func unitsHeld(resources []declaration.Resource) map[string]string { return held } +// unitKey names a unit by the manager it is in and its name (novox/hq ADR 0177): the machine's +// manager, or one account's. A system unit is the same key whether its record says "system" or +// nothing, as every record before the scope existed does. func unitKey(scope, user, unit string) string { if scope == declaration.ScopeUser { return "user:" + user + "/" + unit