style(auth): order authStore fields for fieldalignment

golangci-lint's fieldalignment check reported 240 leading pointer bytes on authStore where 232 is optimal. The bool anonymousAnyKey moves next to the mutexes. No behaviour change.
This commit is contained in:
2026-11-28 02:10:13 +00:00
parent 183c29691b
commit 82dd944f0a
+6 -6
View File
@@ -731,16 +731,16 @@ type authStore struct {
inline map[[32]byte]*authEntry
// anonymous is the principal for keyless requests; nil unless
// UsersConfig.AnonymousGroup is set.
anonymous *authEntry
// anonymousAnyKey admits an unknown key as anonymous instead of 401.
anonymousAnyKey bool
anonymous *authEntry
lastReloadErrMsg string
failureLog logGate
throttleLog logGate
fileUserCount int
mu sync.RWMutex
buildMu sync.Mutex
reloadMu sync.Mutex
// anonymousAnyKey admits an unknown key as anonymous instead of 401.
anonymousAnyKey bool
mu sync.RWMutex
buildMu sync.Mutex
reloadMu sync.Mutex
}
// newAuthStore builds an authStore from cfg's groups and inline users. It