diff options
-rw-r--r-- | cmd/rr/main.go | 2 | ||||
-rw-r--r-- | service/gzip/service.go | 2 | ||||
-rw-r--r-- | service/gzip/service_test.go | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go index f1cf3840..ef393426 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -27,6 +27,7 @@ import ( // services (plugins) "github.com/spiral/roadrunner/service/env" + "github.com/spiral/roadrunner/service/gzip" "github.com/spiral/roadrunner/service/headers" "github.com/spiral/roadrunner/service/health" "github.com/spiral/roadrunner/service/http" @@ -34,7 +35,6 @@ import ( "github.com/spiral/roadrunner/service/metrics" "github.com/spiral/roadrunner/service/rpc" "github.com/spiral/roadrunner/service/static" - "github.com/spiral/roadrunner/service/gzip" // additional commands and debug handlers _ "github.com/spiral/roadrunner/cmd/rr/http" diff --git a/service/gzip/service.go b/service/gzip/service.go index 4c6320ad..86069c2f 100644 --- a/service/gzip/service.go +++ b/service/gzip/service.go @@ -1,8 +1,8 @@ package gzip import ( - rrhttp "github.com/spiral/roadrunner/service/http" "github.com/NYTimes/gziphandler" + rrhttp "github.com/spiral/roadrunner/service/http" "net/http" ) diff --git a/service/gzip/service_test.go b/service/gzip/service_test.go index 6f07a1f9..9f897f53 100644 --- a/service/gzip/service_test.go +++ b/service/gzip/service_test.go @@ -15,7 +15,7 @@ import ( ) type testCfg struct { - gzip string + gzip string httpCfg string static string target string @@ -69,6 +69,7 @@ func Test_Disabled(t *testing.T) { assert.NotNil(t, s) assert.Equal(t, service.StatusInactive, st) } + // func Test_Files(t *testing.T) { // logger, _ := test.NewNullLogger() // logger.SetLevel(logrus.DebugLevel) |