-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
dev: no semaphore if canceled #6128
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
dev: no semaphore if canceled #6128
Conversation
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
please add a description |
added a description 🙏🏻 |
You must sign the CLA |
done! |
I noticed that you are working for Cloudflare. I'm trying to reach companies that use golangci-lint for sponsoring. Could I ask you if you have any contacts to share? You can use the email from our GitHub profile if needed. |
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
Sure, I will loop you in. |
If context is canceled, we're still trying to acquire a semaphore but it's unnecessary so check context before blocking. This can improve cancelation speed by preventing starvation.