Skip to content

fix(config): add mutex lock for configure.Get #68

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

Merged
merged 2 commits into from
Apr 26, 2025
Merged

fix(config): add mutex lock for configure.Get #68

merged 2 commits into from
Apr 26, 2025

Conversation

Degfy
Copy link
Member

@Degfy Degfy commented Apr 26, 2025

  • Add a mutex lock to ensure thread safety when calling configure.Get
  • Improve error handling by returning the error directly
  • Refactor the code to use a defer statement for unlocking the mutex

- Add a mutex lock to ensure thread safety when calling configure.Get
- Improve error handling by returning the error directly
- Refactor the code to use a defer statement for unlocking the mutex
@Degfy Degfy added the kind/bug label Apr 26, 2025
- Bump version from v2.0.12 to v2.0.14 in version.go
Copy link

codecov bot commented Apr 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Degfy Degfy closed this Apr 26, 2025
@Degfy Degfy reopened this Apr 26, 2025
@Degfy Degfy merged commit 4528b04 into main Apr 26, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant