summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwppd <[email protected]>2019-12-25 10:34:18 +0800
committerwppd <[email protected]>2019-12-25 10:34:18 +0800
commit726e6ef17ce500d402379396367e13ec0508ace5 (patch)
tree18cfd5c9ca24bd72ef1feb151f1ca51f494bee94
parent081c3708f242a491ddef9733f95f35e70f50c3e7 (diff)
lint
-rw-r--r--cmd/rr/main.go2
-rw-r--r--service/gzip/service.go2
-rw-r--r--service/gzip/service_test.go3
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)