From 20c282cd10e1818336a3e9c21aa53d054b78af02 Mon Sep 17 00:00:00 2001 From: sweexordious Date: Wed, 27 Nov 2024 16:06:21 +0100 Subject: [PATCH] chore: lint --- pkg/trace/buffered_file.go | 3 ++- pkg/trace/local_tracer_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/trace/buffered_file.go b/pkg/trace/buffered_file.go index 97f5eec404..03d35537f8 100644 --- a/pkg/trace/buffered_file.go +++ b/pkg/trace/buffered_file.go @@ -4,12 +4,13 @@ import ( "bufio" "context" "errors" - "github.com/tendermint/tendermint/libs/log" "io" "os" "sync" "sync/atomic" "time" + + "github.com/tendermint/tendermint/libs/log" ) // bufferedFile is a file that is being written to and read from. It is thread diff --git a/pkg/trace/local_tracer_test.go b/pkg/trace/local_tracer_test.go index 68841a34b7..526e9e8e56 100644 --- a/pkg/trace/local_tracer_test.go +++ b/pkg/trace/local_tracer_test.go @@ -1,6 +1,7 @@ package trace import ( + "context" "fmt" "io" "net" @@ -159,7 +160,7 @@ func setupLocalTracer(t *testing.T, port int) *LocalTracer { cfg.Instrumentation.TracingTables = testEventTable cfg.Instrumentation.TracePullAddress = fmt.Sprintf(":%d", port) - client, err := NewLocalTracer(cfg, logger, "test_chain", "test_node") + client, err := NewLocalTracer(context.Background(), cfg, logger, "test_chain", "test_node") if err != nil { t.Fatalf("failed to create local client: %v", err) }