summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-09 14:59:31 +0300
committerValery Piashchynski <[email protected]>2020-11-09 14:59:31 +0300
commitf218dcbd7e55d9ad1df8336e2331cdaa62d9ded3 (patch)
treec99d15624cd080cad22b7c8fb7d4714b2dc124fb
parent83c14cbad2d7d403b08efbb3cf900df9b52b4938 (diff)
golangci linters fix
-rwxr-xr-xsocket_factory_test.go2
-rwxr-xr-xstatic_pool.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/socket_factory_test.go b/socket_factory_test.go
index b664662c..f7b2e69a 100755
--- a/socket_factory_test.go
+++ b/socket_factory_test.go
@@ -116,7 +116,7 @@ func Test_Tcp_Failboot(t *testing.T) {
cmd := exec.Command("php", "tests/failboot.php")
- w, err2 := NewSocketServer(ls, time.Second * 5).SpawnWorkerWithContext(ctx, cmd)
+ w, err2 := NewSocketServer(ls, time.Second*5).SpawnWorkerWithContext(ctx, cmd)
assert.Nil(t, w)
assert.Error(t, err2)
assert.Contains(t, err2.Error(), "failboot")
diff --git a/static_pool.go b/static_pool.go
index 17ec605e..f64a2c9a 100755
--- a/static_pool.go
+++ b/static_pool.go
@@ -135,7 +135,6 @@ func (sp *StaticPool) Exec(p Payload) (Payload, error) {
}
return EmptyPayload, err
-
}
sw.State().Set(StateInvalid)