[MM-37898] Exclude bots from initial user store emptiness check (#18139)
* Exclude bots from initial user store emptiness check * Add test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cbba2f1cca
Коммит
308a88efb1
@@ -11250,11 +11250,11 @@ func (s *RetryLayerUserStore) InvalidateProfilesInChannelCacheByUser(userID stri
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerUserStore) IsEmpty() (bool, error) {
|
||||
func (s *RetryLayerUserStore) IsEmpty(excludeBots bool) (bool, error) {
|
||||
|
||||
tries := 0
|
||||
for {
|
||||
result, err := s.UserStore.IsEmpty()
|
||||
result, err := s.UserStore.IsEmpty(excludeBots)
|
||||
if err == nil {
|
||||
return result, nil
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user