Skip to content

Commit ca419fb

Browse files
committed
update: use grpc.NewClient in NewWatcher
1 parent 8d9c26e commit ca419fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery/watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func NewWatcher(ctx context.Context, config Config, log hclog.Logger) (*Watcher,
160160
// Dial with "consul://" to trigger our custom resolver. We don't
161161
// provide a server address. The connection will be updated by the
162162
// Watcher via the custom resolver once an address is known.
163-
conn, err := grpc.DialContext(w.ctx, "consul://", dialOpts...)
163+
conn, err := grpc.NewClient("consul://", dialOpts...)
164164
if err != nil {
165165
return nil, err
166166
}

0 commit comments

Comments
 (0)