Skip to content

Commit 5e6cb29

Browse files
committed
nfd-worker: add nolint to deprecated grpc options
1 parent 7dc161e commit 5e6cb29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/nfd-worker/nfd-worker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (w *nfdWorker) getGrpcClient() (pb.LabelerClient, error) {
443443
// Dial and create a client
444444
dialCtx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
445445
defer cancel()
446-
dialOpts := []grpc.DialOption{grpc.WithBlock()}
446+
dialOpts := []grpc.DialOption{grpc.WithBlock()} //nolint:staticcheck // WithBlock is deprecated
447447
if w.args.CaFile != "" || w.args.CertFile != "" || w.args.KeyFile != "" {
448448
// Load client cert for client authentication
449449
cert, err := tls.LoadX509KeyPair(w.args.CertFile, w.args.KeyFile)
@@ -471,7 +471,7 @@ func (w *nfdWorker) getGrpcClient() (pb.LabelerClient, error) {
471471
dialOpts = append(dialOpts, grpc.WithTransportCredentials(insecure.NewCredentials()))
472472
}
473473
klog.InfoS("connecting to nfd-master", "address", w.args.Server)
474-
conn, err := grpc.DialContext(dialCtx, w.args.Server, dialOpts...)
474+
conn, err := grpc.DialContext(dialCtx, w.args.Server, dialOpts...) //nolint:staticcheck // DialContext is deprecated
475475
if err != nil {
476476
return nil, err
477477
}

0 commit comments

Comments
 (0)