Skip to content

Commit

Permalink
fix: add context timeout to health check (#2943)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 15, 2023
1 parent 839e476 commit e7c8703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Golangci lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
version: v1.54
args: --verbose

- name: Markdown lint
Expand Down
2 changes: 1 addition & 1 deletion pkg/rpc/health/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func Check(ctx context.Context, target string, opts ...grpc.DialOption) error {
}
defer healthClient.Close()

if err := healthClient.Check(context.Background(), &healthpb.HealthCheckRequest{}); err != nil {
if err := healthClient.Check(ctx, &healthpb.HealthCheckRequest{}); err != nil {
return err
}

Expand Down

0 comments on commit e7c8703

Please sign in to comment.