[GH-18965] - Pass expire time from outside Cleanup method (#19008)

Pass expire time from outside Cleanup method

Fixes #18965
Этот коммит содержится в:
Kirill Krotov
2021-12-22 12:27:30 +03:00
коммит произвёл GitHub
родитель c198ef6e16
Коммит 0dbc74f6d5
9 изменённых файлов: 73 добавлений и 15 удалений

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

@@ -10813,9 +10813,9 @@ func (s *RetryLayerThreadStore) UpdateUnreadsByChannel(userId string, changedThr
}
func (s *RetryLayerTokenStore) Cleanup() {
func (s *RetryLayerTokenStore) Cleanup(expiryTime int64) {
s.TokenStore.Cleanup()
s.TokenStore.Cleanup(expiryTime)
}