diff options
author | Valery Piashchynski <[email protected]> | 2021-07-22 18:10:33 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-22 18:10:33 +0300 |
commit | 2ceebd687fd17b6029ef3df0e979c39bb39abc7f (patch) | |
tree | 9f507e82163586d9e803cab91ed657ab2c81e3fb | |
parent | e9713a1d08a93e2be70c889c600ed89f54822b54 (diff) |
Linters
Signed-off-by: Valery Piashchynski <[email protected]>
-rwxr-xr-x | pkg/pool/static_pool_test.go | 2 | ||||
-rw-r--r-- | plugins/jobs/rpc.go | 2 | ||||
-rw-r--r-- | tests/plugins/jobs/jobs_amqp_test.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go index 3f9ab2bb..2ac2093d 100755 --- a/pkg/pool/static_pool_test.go +++ b/pkg/pool/static_pool_test.go @@ -581,7 +581,7 @@ Benchmark_Pool_Echo-32 47760 30517 ns/op 7955 B/op 19 allo Benchmark_Pool_Echo-32 48148 29816 ns/op 7950 B/op 19 allocs/op Benchmark_Pool_Echo-32 52705 29809 ns/op 7979 B/op 19 allocs/op Benchmark_Pool_Echo-32 54374 27776 ns/op 7947 B/op 19 allocs/op - */ +*/ func Benchmark_Pool_Echo(b *testing.B) { ctx := context.Background() p, err := Initialize( diff --git a/plugins/jobs/rpc.go b/plugins/jobs/rpc.go index 0d15fb0f..aeba499b 100644 --- a/plugins/jobs/rpc.go +++ b/plugins/jobs/rpc.go @@ -111,7 +111,7 @@ func (r *rpc) Declare(req *jobsv1beta.DeclareRequest, _ *jobsv1beta.Empty) error func (r *rpc) Destroy(req *jobsv1beta.Pipelines, resp *jobsv1beta.Pipelines) error { const op = errors.Op("rcp_declare_pipeline") - var destroyed []string + var destroyed []string //nolint:prealloc for i := 0; i < len(req.GetPipelines()); i++ { err := r.p.Destroy(req.GetPipelines()[i]) if err != nil { diff --git a/tests/plugins/jobs/jobs_amqp_test.go b/tests/plugins/jobs/jobs_amqp_test.go index 7e74891c..52bb6c7c 100644 --- a/tests/plugins/jobs/jobs_amqp_test.go +++ b/tests/plugins/jobs/jobs_amqp_test.go @@ -149,7 +149,7 @@ func TestAMQPDeclare(t *testing.T) { &server.Plugin{}, &rpcPlugin.Plugin{}, &logger.ZapLogger{}, - //mockLogger, + // mockLogger, &jobs.Plugin{}, &resetter.Plugin{}, &informer.Plugin{}, |