1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

Merge pull request #383 from Windfarer/fix_redis_trace

fix trace
This commit is contained in:
Terry.Mao 2019-10-15 23:50:07 +08:00 committed by GitHub
commit 2220ca1e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}