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

Fix wrong usage of RWMutex in default cache implementation #2410

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

733amir
Copy link
Contributor

@733amir 733amir commented Jan 9, 2022

I saw the usage of RWMutex in default cache implementation and wanted to fix it. It should use RLock and RUnlock mechanism in Get.

@asim
Copy link
Member

asim commented Jan 9, 2022

It's not wrong, just opted not to use read lock.

@asim asim merged commit ef7528e into micro:master Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants