-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
context.WithTimeout: do call the cancel func #36920
Conversation
govet complains (when using standard "context" package): > the cancel function returned by context.WithTimeout should be called, > not discarded, to avoid a context leak (vet) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Failing on flaky test #36501
|
Codecov Report
@@ Coverage Diff @@
## master #36920 +/- ##
=========================================
Coverage ? 35.42%
=========================================
Files ? 614
Lines ? 46050
Branches ? 0
=========================================
Hits ? 16315
Misses ? 27582
Partials ? 2153 |
LGTM |
govet complains (when using standard "context" package in #36904):
fix it.