[GH-18965] - Pass expire time from outside Cleanup method (#19008)
Pass expire time from outside Cleanup method Fixes #18965
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c198ef6e16
Коммит
0dbc74f6d5
@@ -1491,7 +1491,11 @@ func doSecurity(s *Server) {
|
||||
}
|
||||
|
||||
func doTokenCleanup(s *Server) {
|
||||
s.Store.Token().Cleanup()
|
||||
expiry := model.GetMillis() - model.MaxTokenExipryTime
|
||||
|
||||
mlog.Debug("Cleaning up token store.")
|
||||
|
||||
s.Store.Token().Cleanup(expiry)
|
||||
}
|
||||
|
||||
func doCommandWebhookCleanup(s *Server) {
|
||||
|
||||
Ссылка в новой задаче
Block a user