From a08df883b4ddb514d53b518f41431ce7efb50d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 20 Sep 2018 19:07:03 +0200 Subject: Move file backend to its own service (#9435) * Move file backend to its own service * Moving utils/inbucket to mailservice package --- api4/system.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api4/system.go') diff --git a/api4/system.go b/api4/system.go index 65d3b424b..2f6e53ab8 100644 --- a/api4/system.go +++ b/api4/system.go @@ -12,7 +12,7 @@ import ( "github.com/mattermost/mattermost-server/mlog" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" + "github.com/mattermost/mattermost-server/services/filesstore" ) func (api *API) InitSystem() { @@ -427,7 +427,7 @@ func testS3(c *Context, w http.ResponseWriter, r *http.Request) { return } - err := utils.CheckMandatoryS3Fields(&cfg.FileSettings) + err := filesstore.CheckMandatoryS3Fields(&cfg.FileSettings) if err != nil { c.Err = err return @@ -438,7 +438,7 @@ func testS3(c *Context, w http.ResponseWriter, r *http.Request) { } license := c.App.License() - backend, appErr := utils.NewFileBackend(&cfg.FileSettings, license != nil && *license.Features.Compliance) + backend, appErr := filesstore.NewFileBackend(&cfg.FileSettings, license != nil && *license.Features.Compliance) if appErr == nil { appErr = backend.TestConnection() } -- cgit v1.2.3-1-g7c22