mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-13 13:48:51 +02:00
fix trace
This commit is contained in:
parent
11051d3bb4
commit
bf7d69c540
4
pkg/cache/redis/trace.go
vendored
4
pkg/cache/redis/trace.go
vendored
@ -122,9 +122,7 @@ func (t *traceConn) Receive() (reply interface{}, err error) {
|
||||
|
||||
func (t *traceConn) WithContext(ctx context.Context) Conn {
|
||||
t.Conn = t.Conn.WithContext(ctx)
|
||||
if root, ok := trace.FromContext(ctx); ok {
|
||||
t.tr = root
|
||||
}
|
||||
t.tr, _ = trace.FromContext(ctx)
|
||||
return t
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user