Skip to content

Commit

Permalink
feature/tracing-credentials: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Nov 15, 2023
1 parent 3cb008b commit 41b7296
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/loop/telem.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ func SetupTracing(config TracingConfig) (err error) {
// Note the potential use of insecure transport here. TLS is recommended in production.
grpc.WithTransportCredentials(creds),
grpc.WithContextDialer(func(ctx context.Context, s string) (net.Conn, error) {
conn, err := net.Dial("tcp", s)
if err != nil {
config.OnDialError(err)
conn, err2 := net.Dial("tcp", s)
if err2 != nil {
config.OnDialError(err2)
}
return conn, err
return conn, err2
}))
if err != nil {
return err
Expand Down

0 comments on commit 41b7296

Please sign in to comment.