fix: change to write lock for thread safety in json unmarshal
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.
This commit is contained in:
Reference in New Issue
Block a user