Skip to content

Commit

Permalink
Ignore linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Dec 26, 2024
1 parent 2952c79 commit 3222ffd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/grpc_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ func Test_GRPC_Server(t *testing.T) {
assert.Equal(t, config.Version, resp.GetVersion())
assert.Equal(t, config.VersionInfo(), resp.GetVersionInfo())

grpcServer.Shutdown(nil)
grpcServer.Shutdown(nil) //nolint:staticcheck
}
2 changes: 1 addition & 1 deletion api/http_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ func Test_HTTP_Server(t *testing.T) {
assert.Equal(t, len(config.Version), len(respBodyBytes))
assert.Equal(t, config.Version, string(respBodyBytes))

grpcServer.Shutdown(nil)
grpcServer.Shutdown(nil) //nolint:staticcheck
httpServer.Shutdown(context.Background())
}
2 changes: 1 addition & 1 deletion cmd/gatewayd_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ func (app *GatewayDApp) stopGracefully(runCtx context.Context, sig os.Signal) {
}

if app.grpcServer != nil {
app.grpcServer.Shutdown(nil)
app.grpcServer.Shutdown(nil) //nolint:staticcheck,contextcheck
logger.Info().Msg("Stopped gRPC Server")
span.AddEvent("Stopped gRPC Server")
}
Expand Down

0 comments on commit 3222ffd

Please sign in to comment.