Remove waitForSidebarCategories (#17004)

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

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

@@ -661,7 +661,7 @@ func (s *OpenTracingLayerChannelStore) CreateDirectChannel(userId *model.User, o
return result, err
}
func (s *OpenTracingLayerChannelStore) CreateInitialSidebarCategories(userId string, teamID string) error {
func (s *OpenTracingLayerChannelStore) CreateInitialSidebarCategories(userId string, teamID string) (*model.OrderedSidebarCategories, error) {
origCtx := s.Root.Store.Context()
span, newCtx := tracing.StartSpanWithParentByContext(s.Root.Store.Context(), "ChannelStore.CreateInitialSidebarCategories")
s.Root.Store.SetContext(newCtx)
@@ -670,13 +670,13 @@ func (s *OpenTracingLayerChannelStore) CreateInitialSidebarCategories(userId str
}()
defer span.Finish()
err := s.ChannelStore.CreateInitialSidebarCategories(userId, teamID)
result, err := s.ChannelStore.CreateInitialSidebarCategories(userId, teamID)
if err != nil {
span.LogFields(spanlog.Error(err))
ext.Error.Set(span, true)
}
return err
return result, err
}
func (s *OpenTracingLayerChannelStore) CreateSidebarCategory(userId string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error) {