Move HTTPService and ConfigService into services package (#9422)
* Move HTTPService and ConfigService into utils package * Re-add StaticConfigService * Move config and http services into their own packages
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
15d64fb201
Коммит
4e59a27293
@@ -25,6 +25,7 @@ import (
|
||||
"github.com/mattermost/mattermost-server/mlog"
|
||||
"github.com/mattermost/mattermost-server/model"
|
||||
"github.com/mattermost/mattermost-server/plugin"
|
||||
"github.com/mattermost/mattermost-server/services/httpservice"
|
||||
"github.com/mattermost/mattermost-server/store"
|
||||
"github.com/mattermost/mattermost-server/store/sqlstore"
|
||||
"github.com/mattermost/mattermost-server/utils"
|
||||
@@ -101,7 +102,7 @@ type App struct {
|
||||
|
||||
phase2PermissionsMigrationComplete bool
|
||||
|
||||
HTTPService HTTPService
|
||||
HTTPService httpservice.HTTPService
|
||||
}
|
||||
|
||||
var appCount = 0
|
||||
@@ -128,7 +129,7 @@ func New(options ...Option) (outApp *App, outErr error) {
|
||||
licenseListeners: map[string]func(){},
|
||||
}
|
||||
|
||||
app.HTTPService = MakeHTTPService(app)
|
||||
app.HTTPService = httpservice.MakeHTTPService(app)
|
||||
|
||||
app.CreatePushNotificationsHub()
|
||||
app.StartPushNotificationsHubWorkers()
|
||||
|
||||
Ссылка в новой задаче
Block a user