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

server.Shutdown(nil) -> server.Shutdown(ctx) #19

Merged
merged 1 commit into from
Feb 20, 2019
Merged

Conversation

pboothe
Copy link
Contributor

@pboothe pboothe commented Feb 20, 2019

Also some cleanup of lots of lint errors and gofmt suggestions.

Passing a nil context to server shutdown turns out to only mostly work - there's a race condition deep in there, and sometimes it causes a panic. Passing in an actual non-nil context will always work.


This change is Reviewable

Also some cleanup of lots of lint errors and gofmt suggestions.
Copy link
Contributor

@robertodauria robertodauria left a comment

Choose a reason for hiding this comment

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

:lgtm: Thanks!

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@pboothe
Copy link
Contributor Author

pboothe commented Feb 20, 2019

The build failed because coveralls is down. I'll wait a bit and see if it comes back up.

@pboothe pboothe merged commit 77ea3a1 into master Feb 20, 2019
@pboothe pboothe deleted the fix-nil-context branch February 20, 2019 18:34
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.

None yet

2 participants