fix: change to write lock for thread safety in json unmarshal #242
Reference in New Issue
Block a user
Delete Branch "fix/thread-safety-json-unmarshal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace read lock with write lock in client.go to ensure thread
safety during the unmarshalling of JSON data. This prevents
concurrent read access and potential data races, improving
the integrity of the privileges data structure.
Codecov Report
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.35%. Comparing base (
46e26ef) to head (af93e41).Additional details and impacted files
☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.
🚀 New features to boost your workflow:
mentioned in commit
9dd2b5aaa8