Cleaning the store from functions returning StoreResult (#11602)

* Cleaning the store from functions returning StoreResult

* Removing unnecesary StoreChannel type
Этот коммит содержится в:
Jesús Espino
2019-07-29 12:38:46 +02:00
коммит произвёл GitHub
родитель c362f0e802
Коммит e067272e16
9 изменённых файлов: 109 добавлений и 210 удалений

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

@@ -56,8 +56,8 @@ func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *mo
close(privateChan)
}()
var userChan store.StoreChannel
var userInactiveChan store.StoreChannel
var userChan chan store.StoreResult
var userInactiveChan chan store.StoreResult
if teamId == "" {
userInactiveChan = make(chan store.StoreResult, 1)
go func() {
@@ -74,7 +74,7 @@ func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *mo
}()
}
var postChan store.StoreChannel
var postChan chan store.StoreResult
if !skipIntensiveQueries {
postChan = make(chan store.StoreResult, 1)
go func() {
@@ -257,8 +257,8 @@ func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *mo
close(sessionChan)
}()
var fileChan store.StoreChannel
var hashtagChan store.StoreChannel
var fileChan chan store.StoreResult
var hashtagChan chan store.StoreResult
if !skipIntensiveQueries {
fileChan = make(chan store.StoreResult, 1)