Skip to content

Commit 78c8b28

Browse files
committed
Fix missing return
1 parent 5287a9c commit 78c8b28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extra/redisotel/tracing.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func InstrumentTracing(ctx context.Context, rdb redis.UniversalClient, opts ...T
4242
opts = addServerAttributes(opts, opt.Addr)
4343
connString := formatDBConnString(opt.Network, opt.Addr)
4444
rdb.AddHook(newTracingHook(connString, opts...))
45+
return nil
4546
})
4647
return nil
4748
case *redis.Ring:
@@ -57,6 +58,7 @@ func InstrumentTracing(ctx context.Context, rdb redis.UniversalClient, opts ...T
5758
opts = addServerAttributes(opts, opt.Addr)
5859
connString := formatDBConnString(opt.Network, opt.Addr)
5960
rdb.AddHook(newTracingHook(connString, opts...))
61+
return nil
6062
})
6163
return nil
6264
default:

0 commit comments

Comments
 (0)