From 4e59a27293394b6d5529efd13ad711daebbc0eb3 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 26 Sep 2018 12:42:51 -0400 Subject: 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 --- app/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/app.go') diff --git a/app/app.go b/app/app.go index 1c0d56a3c..1cec749da 100644 --- a/app/app.go +++ b/app/app.go @@ -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() -- cgit v1.2.3-1-g7c22