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

Remove dependency on graceful #611

Merged
merged 2 commits into from
Sep 6, 2018
Merged

Remove dependency on graceful #611

merged 2 commits into from
Sep 6, 2018

Conversation

jzelinskie
Copy link
Contributor

This library has no longer been needed since Go 1.8 added http.Server.Shutdown().

@jzelinskie jzelinskie added the kind/cleanup no functional changes, only reorganization label Sep 6, 2018
api/api.go Outdated
if opErr, ok := err.(*net.OpError); !ok || (ok && opErr.Op != "accept") {
log.Fatal(err)
}
log.Fatal(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

https://golang.org/pkg/net/http/#Server.Shutdown
By the example, ListenAndServe will return ErrServerClosed when Shutdown is called. Should we change it to be that only when err is not ErrServerClosed, we log Fatal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice save!

Copy link
Contributor

@KeyboardNerd KeyboardNerd left a comment

Choose a reason for hiding this comment

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

LGTM

@jzelinskie jzelinskie merged commit fffb67f into quay:master Sep 6, 2018
@jzelinskie jzelinskie deleted the drop-graceful branch September 6, 2018 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup no functional changes, only reorganization
Development

Successfully merging this pull request may close these issues.

None yet

2 participants