diff --git a/pkg/trace/buffered_file.go b/pkg/trace/buffered_file.go index 97f5eec40..03d35537f 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 68841a34b..526e9e8e5 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) }