From f218dcbd7e55d9ad1df8336e2331cdaa62d9ded3 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 9 Nov 2020 14:59:31 +0300 Subject: golangci linters fix --- socket_factory_test.go | 2 +- static_pool.go | 1 - 2 files changed, 1 insertion(+), 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) -- cgit v1.2.3