Merge pull request #383 from Windfarer/fix_redis_trace

fix trace
pull/386/head
Terry.Mao 5 years ago committed by GitHub
commit 2220ca1e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/cache/redis/trace.go

@ -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…
Cancel
Save