[MM-15803] Migrate "Session.AnalyticsSessionCount" to Sync by default (#10948)
* [MM-15803] Migrate "Session.AnalyticsSessionCount" to Sync by default * Use Explict Async for sessionChan in analytics.go
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
ff0d3ab00b
Коммит
674b6f2285
@@ -14,19 +14,26 @@ type SessionStore struct {
|
||||
}
|
||||
|
||||
// AnalyticsSessionCount provides a mock function with given fields:
|
||||
func (_m *SessionStore) AnalyticsSessionCount() store.StoreChannel {
|
||||
func (_m *SessionStore) AnalyticsSessionCount() (int64, *model.AppError) {
|
||||
ret := _m.Called()
|
||||
|
||||
var r0 store.StoreChannel
|
||||
if rf, ok := ret.Get(0).(func() store.StoreChannel); ok {
|
||||
var r0 int64
|
||||
if rf, ok := ret.Get(0).(func() int64); ok {
|
||||
r0 = rf()
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(store.StoreChannel)
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func() *model.AppError); ok {
|
||||
r1 = rf()
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Cleanup provides a mock function with given fields: expiryTime, batchSize
|
||||
|
||||
Ссылка в новой задаче
Block a user