Skip to content

Commit ef171b8

Browse files
committed
Skip lint check for grpc.DialContext and grpc.WithBlock
Signed-off-by: Derek Su <[email protected]>
1 parent d5cdb26 commit ef171b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/util/util.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ func DetectGRPCServerAvailability(address string, waitIntervalInSecond int, shou
9595
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
9696
grpcOpts := []grpc.DialOption{
9797
grpc.WithTransportCredentials(insecure.NewCredentials()),
98-
grpc.WithBlock(),
98+
grpc.WithBlock(), // nolint: staticcheck
9999
}
100-
conn, err := grpc.DialContext(ctx, address, grpcOpts...)
100+
conn, err := grpc.DialContext(ctx, address, grpcOpts...) // nolint: staticcheck
101101
defer cancel()
102102
if !shouldAvailable {
103103
if err != nil {

0 commit comments

Comments
 (0)