summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/rr/cmd/serve.go2
-rw-r--r--cmd/util/cprint.go2
-rw-r--r--service/http/fcgi_test.go4
-rw-r--r--service/rpc/config.go2
-rw-r--r--util/network_test.go4
5 files changed, 7 insertions, 7 deletions
diff --git a/cmd/rr/cmd/serve.go b/cmd/rr/cmd/serve.go
index 981ad12d..c754be46 100644
--- a/cmd/rr/cmd/serve.go
+++ b/cmd/rr/cmd/serve.go
@@ -33,7 +33,7 @@ func init() {
CLI.AddCommand(&cobra.Command{
Use: "serve",
Short: "Serve RoadRunner service(s)",
- RunE: serveHandler,
+ RunE: serveHandler,
})
signal.Notify(stopSignal, os.Interrupt, os.Kill, syscall.SIGTERM, syscall.SIGINT)
diff --git a/cmd/util/cprint.go b/cmd/util/cprint.go
index 1d4d8cd3..85202b0a 100644
--- a/cmd/util/cprint.go
+++ b/cmd/util/cprint.go
@@ -3,9 +3,9 @@ package util
import (
"fmt"
"github.com/mgutz/ansi"
+ "os"
"regexp"
"strings"
- "os"
)
var (
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.
diff --git a/util/network_test.go b/util/network_test.go
index bdc7e0b7..cfa06778 100644
--- a/util/network_test.go
+++ b/util/network_test.go
@@ -6,9 +6,9 @@ import (
)
func TestCreateListener(t *testing.T) {
- _, err := CreateListener("unexpected dsn");
+ _, err := CreateListener("unexpected dsn")
assert.Error(t, err, "Invalid DSN (tcp://:6001, unix://file.sock)")
- _, err = CreateListener("aaa://192.168.0.1");
+ _, err = CreateListener("aaa://192.168.0.1")
assert.Error(t, err, "Invalid Protocol (tcp://:6001, unix://file.sock)")
}