Moving store layers into independent packages (#15004)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
935ddaa251
Коммит
2de5f75f47
@@ -20,7 +20,7 @@ import (
|
||||
"github.com/mattermost/mattermost-server/v5/mlog"
|
||||
"github.com/mattermost/mattermost-server/v5/model"
|
||||
"github.com/mattermost/mattermost-server/v5/services/tracing"
|
||||
"github.com/mattermost/mattermost-server/v5/store"
|
||||
"github.com/mattermost/mattermost-server/v5/store/opentracinglayer"
|
||||
"github.com/mattermost/mattermost-server/v5/utils"
|
||||
"github.com/opentracing/opentracing-go"
|
||||
"github.com/opentracing/opentracing-go/ext"
|
||||
@@ -138,7 +138,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
tmpSrv := app.Server{}
|
||||
tmpSrv = *c.App.Srv()
|
||||
tmpSrv.Store = store.NewOpenTracingLayer(c.App.Srv().Store, ctx)
|
||||
tmpSrv.Store = opentracinglayer.New(c.App.Srv().Store, ctx)
|
||||
c.App.SetServer(&tmpSrv)
|
||||
c.App = app_opentracing.NewOpenTracingAppLayer(c.App, ctx)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user