Remove waitForSidebarCategories (#17004)

Этот коммит содержится в:
Claudio Costa
2021-02-26 09:42:19 +01:00
коммит произвёл GitHub
родитель 978fee3c20
Коммит 33c8b0ad73
9 изменённых файлов: 233 добавлений и 205 удалений

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

@@ -631,10 +631,10 @@ func (s *TimerLayerChannelStore) CreateDirectChannel(userId *model.User, otherUs
return result, err
}
func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userId string, teamID string) error {
func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userId string, teamID string) (*model.OrderedSidebarCategories, error) {
start := timemodule.Now()
err := s.ChannelStore.CreateInitialSidebarCategories(userId, teamID)
result, err := s.ChannelStore.CreateInitialSidebarCategories(userId, teamID)
elapsed := float64(timemodule.Since(start)) / float64(timemodule.Second)
if s.Root.Metrics != nil {
@@ -644,7 +644,7 @@ func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userId string, t
}
s.Root.Metrics.ObserveStoreMethodDuration("ChannelStore.CreateInitialSidebarCategories", success, elapsed)
}
return err
return result, err
}
func (s *TimerLayerChannelStore) CreateSidebarCategory(userId string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error) {