mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-12-06 11:03:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user