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: use async Mutext #595

Merged
merged 1 commit into from
Nov 23, 2023
Merged

fix: use async Mutext #595

merged 1 commit into from
Nov 23, 2023

Conversation

flavio
Copy link
Member

@flavio flavio commented Nov 22, 2023

Use a tokio::sync::Mutex inside of an async context. This prevents the tokio runtime from blocking.

This will avoid slowdowns of the async routines.

I detected that with a linter.

Use a `tokio::sync::Mutex` inside of an async context. This prevents the
tokio runtime from blocking.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
@flavio flavio requested a review from a team as a code owner November 22, 2023 20:52
@viccuad viccuad merged commit 80e60a8 into kubewarden:main Nov 23, 2023
8 checks passed
@flavio flavio deleted the use-tokio-mutex branch November 23, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants