Automatic Merge
Этот коммит содержится в:
Mattermost Build
2025-10-27 12:59:15 +02:00
коммит произвёл GitHub
родитель 56163e9e0e
Коммит f361e7d75a
14 изменённых файлов: 352 добавлений и 32 удалений

Просмотреть файл

@@ -11106,10 +11106,10 @@ func (s *TimerLayerTokenStore) Cleanup(expiryTime int64) {
}
}
func (s *TimerLayerTokenStore) ConsumeOnce(tokenStr string) (*model.Token, error) {
func (s *TimerLayerTokenStore) ConsumeOnce(tokenType string, tokenStr string) (*model.Token, error) {
start := time.Now()
result, err := s.TokenStore.ConsumeOnce(tokenStr)
result, err := s.TokenStore.ConsumeOnce(tokenType, tokenStr)
elapsed := float64(time.Since(start)) / float64(time.Second)
if s.Root.Metrics != nil {