Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close the API HTTP Server When Ctx Canceled and Fix Retry Utils #713

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

rauljordan
Copy link
Collaborator

No description provided.

@rauljordan rauljordan changed the title Close the API HTTP Server When Ctx Canceled Close the API HTTP Server When Ctx Canceled and Fix Retry Utils Dec 6, 2024
go func() {
<-ctx.Done()
if err := s.srv.Shutdown(ctx); err != nil {
log.Fatal(err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be fatal

Copy link
Collaborator

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rauljordan rauljordan merged commit d0a87de into main Dec 6, 2024
5 checks passed
@rauljordan rauljordan deleted the await-server-shutdown branch December 6, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants