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

🐛 defer unlocking of mutex #70

Merged
merged 1 commit into from
Feb 16, 2024
Merged

🐛 defer unlocking of mutex #70

merged 1 commit into from
Feb 16, 2024

Conversation

kranurag7
Copy link
Contributor

defer works even when there's a panic so we are
always unlocking the mutex.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #69

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squash commits
  • include documentation
  • add unit tests

defer works even when there's a panic so we are
always unlocking the mutex.

Signed-off-by: kranurag7 <[email protected]>
chess-knight added a commit to SovereignCloudStack/cluster-stack-provider-openstack that referenced this pull request Feb 16, 2024
@janiskemper janiskemper marked this pull request as ready for review February 16, 2024 12:24
@kranurag7 kranurag7 merged commit 061cd76 into main Feb 16, 2024
7 checks passed
@kranurag7 kranurag7 deleted the kr/defer-mutex branch February 16, 2024 12:32
chess-knight added a commit to SovereignCloudStack/cluster-stack-provider-openstack that referenced this pull request Feb 16, 2024
* Create GitHub client only if it is necessary

Fixes #80

Signed-off-by: Roman Hros <[email protected]>

* Defer unlocking of mutex

Based on SovereignCloudStack/cluster-stack-operator#70

Signed-off-by: Roman Hros <[email protected]>

* Create a GitHub client before mutex

Signed-off-by: Roman Hros <[email protected]>

---------

Signed-off-by: Roman Hros <[email protected]>
@jschoone jschoone added the Container Issues or pull requests relevant for Team 2: Container Infra and Tooling label Feb 27, 2024
kranurag7 added a commit that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Container Issues or pull requests relevant for Team 2: Container Infra and Tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unlock mutex for downloading release assets
4 participants