MM-15295: Migrate commandstore.AnalyticsCommandCount to sync by default (#10746)

Этот коммит содержится в:
Puneeth Reddy
2019-04-30 03:24:05 -07:00
коммит произвёл George Goldberg
родитель d59843725f
Коммит d4225349ef
6 изменённых файлов: 45 добавлений и 35 удалений

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

@@ -193,7 +193,14 @@ func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *mo
}()
oHookChan := a.Srv.Store.Webhook().AnalyticsOutgoingCount(teamId)
commandChan := a.Srv.Store.Command().AnalyticsCommandCount(teamId)
commandChan := make(chan store.StoreResult, 1)
go func() {
c, err := a.Srv.Store.Command().AnalyticsCommandCount(teamId)
commandChan <- store.StoreResult{Data: c, Err: err}
close(commandChan)
}()
sessionChan := a.Srv.Store.Session().AnalyticsSessionCount()
var fileChan store.StoreChannel