Moving store layers into independent packages (#15004)

Этот коммит содержится в:
Jesús Espino
2020-07-27 15:14:16 +02:00
коммит произвёл GitHub
родитель 935ddaa251
Коммит 2de5f75f47
7 изменённых файлов: 229 добавлений и 218 удалений

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

@@ -48,6 +48,7 @@ import (
"github.com/mattermost/mattermost-server/v5/store/localcachelayer"
"github.com/mattermost/mattermost-server/v5/store/searchlayer"
"github.com/mattermost/mattermost-server/v5/store/sqlstore"
"github.com/mattermost/mattermost-server/v5/store/timerlayer"
"github.com/mattermost/mattermost-server/v5/utils"
)
@@ -310,7 +311,7 @@ func NewServer(options ...Option) (*Server, error) {
s.sqlStore.UpdateLicense(newLicense)
})
return store.NewTimerLayer(
return timerlayer.New(
searchStore,
s.Metrics,
)