Skip to content

Commit 8f021ec

Browse files
committed
Close() already calls cancel()
..but Close() is actually never called. This should not matter though as the place to call it is where the ForwarderAgent is stopped anyway.
1 parent 213bdb9 commit 8f021ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkg/otelcolclient/otelcolclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func NewGRPCWriter(addr string, tlsConfig *tls.Config, l *log.Logger) (*GRPCWrit
5050
return nil, err
5151
}
5252

53-
ctx, cancel := context.WithCancel(context.Background())
53+
ctx, cancel := context.WithCancel(context.Background()) //nolint:gosec
5454
w := &GRPCWriter{
5555
msc: colmetricspb.NewMetricsServiceClient(cc),
5656
tsc: coltracepb.NewTraceServiceClient(cc),

0 commit comments

Comments
 (0)