summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-24 13:58:54 +0300
committerWolfy-J <[email protected]>2019-06-24 13:58:54 +0300
commited7ba40a04f32d04f1e565fe0fb973aa0e0574a9 (patch)
treec22f6bd6ca1d39ecc7e3e2badc160ddad7d06749 /service
parentd8ccbb94a5915a1957beb162d3c2ecb668087ef3 (diff)
go fmt
Diffstat (limited to 'service')
-rw-r--r--service/http/fcgi_test.go4
-rw-r--r--service/rpc/config.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/service/http/fcgi_test.go b/service/http/fcgi_test.go
index 6b6cd0f3..58fbe557 100644
--- a/service/http/fcgi_test.go
+++ b/service/http/fcgi_test.go
@@ -5,11 +5,11 @@ import (
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
+ "github.com/yookoala/gofast"
"io/ioutil"
"net/http/httptest"
"testing"
"time"
- "github.com/yookoala/gofast"
)
func Test_FCGI_Service_Echo(t *testing.T) {
@@ -51,7 +51,7 @@ func Test_FCGI_Service_Echo(t *testing.T) {
req := httptest.NewRequest("GET", "http://site.local/?hello=world", nil)
fcgiHandler.ServeHTTP(w, req)
- body, err := ioutil.ReadAll(w.Result().Body);
+ body, err := ioutil.ReadAll(w.Result().Body)
assert.NoError(t, err)
assert.Equal(t, 201, w.Result().StatusCode)
diff --git a/service/rpc/config.go b/service/rpc/config.go
index 8a29c2d8..a4cf0f91 100644
--- a/service/rpc/config.go
+++ b/service/rpc/config.go
@@ -45,7 +45,7 @@ func (c *Config) Valid() error {
// Listener creates new rpc socket Listener.
func (c *Config) Listener() (net.Listener, error) {
- return util.CreateListener(c.Listen);
+ return util.CreateListener(c.Listen)
}
// Dialer creates rpc socket Dialer.