mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
stop ticker
This commit is contained in:
@@ -851,6 +851,10 @@ func reloadAuthConfigData(data []byte) (bool, error) {
|
||||
verified: make(map[string]jwtVerified),
|
||||
removeExpiredT: time.NewTicker(time.Minute),
|
||||
}
|
||||
jcPrev := jwtAuthCache.Load()
|
||||
if jcPrev != nil {
|
||||
jcPrev.removeExpiredT.Stop()
|
||||
}
|
||||
|
||||
m, err := parseAuthConfigUsers(ac)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user