Skip to content

Commit ad8639f

Browse files
committed
upgrade
1 parent b346216 commit ad8639f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
File renamed without changes.

pkg/grpcclient/client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type option struct {
2727
resolverBuilder resolver.Builder
2828
dialTimeout time.Duration
2929
sign Sign
30-
Trace *trace.Trace
31-
Grpc *trace.Grpc
30+
trace *trace.Trace
31+
grpc *trace.Grpc
3232
}
3333

3434
// WithCredential setup credential for tls
@@ -63,8 +63,8 @@ func WithSign(sign Sign) Option {
6363
func WithTrace(t Trace) Option {
6464
return func(opt *option) {
6565
if t != nil {
66-
opt.Trace = t.(*trace.Trace)
67-
opt.Grpc = new(trace.Grpc)
66+
opt.trace = t.(*trace.Trace)
67+
opt.grpc = new(trace.Grpc)
6868
}
6969
}
7070
}
@@ -89,7 +89,7 @@ func New(target string, options ...Option) (*grpc.ClientConn, error) {
8989
dialTimeout = opt.dialTimeout
9090
}
9191

92-
clientInterceptor := NewClientInterceptor(opt.sign, opt.Trace, opt.Grpc)
92+
clientInterceptor := NewClientInterceptor(opt.sign, opt.trace, opt.grpc)
9393

9494
dialOptions := []grpc.DialOption{
9595
grpc.WithBlock(),

0 commit comments

Comments
 (0)