svix-webhooks
svix-webhooks copied to clipboard
Replace tokio mutex with std mutex
IMHO, I suggest that replacing tokio::sync::Mutex
with std::sync::Mutex
can potentially lead to better performance outcomes. This assertion is based on the design differences between the two mutex implementations, particularly in asynchronous contexts.
For further insights, check out the following resources:
Discussion on this topic. Never use Tokio mutexes. tokio::sync::Mutex documentation.
Please feel free to open a PR!
Whoops, didn't mean to close it. :)