Skip to content

Commit

Permalink
Skip lint check for grpc.DialContext and grpc.WithBlock
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Jun 25, 2024
1 parent f687eb6 commit 85e1a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ func DetectGRPCServerAvailability(address string, waitIntervalInSecond int, shou
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
grpcOpts := []grpc.DialOption{
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithBlock(),
grpc.WithBlock(), // nolint: staticcheck
}
conn, err := grpc.DialContext(ctx, address, grpcOpts...)
conn, err := grpc.DialContext(ctx, address, grpcOpts...) // nolint: staticcheck
defer cancel()
if !shouldAvailable {
if err != nil {
Expand Down

0 comments on commit 85e1a5a

Please sign in to comment.