Adding initial retry layer version (#14954)

* Adding initial retry layer version

* Some simplification around the generated code

* Generating retry layer again

* Improving naming generation in store generated layers

* Address PR review comments

* Updating store layers

* Addressing PR review comments

* fixing lint errors

* Updating store layers

* Adding license header

* Applying the retry layer to the reaction_store

* Regenerating retry layer
Этот коммит содержится в:
Jesús Espino
2020-08-12 20:05:16 +02:00
коммит произвёл GitHub
родитель c89c56ab2e
Коммит 1b141678fe
12 изменённых файлов: 9780 добавлений и 3549 удалений

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

@@ -46,6 +46,7 @@ import (
"github.com/mattermost/mattermost-server/v5/services/tracing"
"github.com/mattermost/mattermost-server/v5/store"
"github.com/mattermost/mattermost-server/v5/store/localcachelayer"
"github.com/mattermost/mattermost-server/v5/store/retrylayer"
"github.com/mattermost/mattermost-server/v5/store/searchlayer"
"github.com/mattermost/mattermost-server/v5/store/sqlstore"
"github.com/mattermost/mattermost-server/v5/store/timerlayer"
@@ -293,7 +294,7 @@ func NewServer(options ...Option) (*Server, error) {
s.sqlStore = sqlstore.NewSqlSupplier(s.Config().SqlSettings, s.Metrics)
searchStore := searchlayer.NewSearchLayer(
localcachelayer.NewLocalCacheLayer(
s.sqlStore,
retrylayer.New(s.sqlStore),
s.Metrics,
s.Cluster,
s.CacheProvider,