-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
bug: blocking IO in async contexts #476
Comments
Should be fixed by our new reqsign/crates/reqsign/src/context.rs Lines 8 to 13 in d38265a
|
Nice! Browsing a bit, I found some std::fs calls in other places, e.g. reqsign/services/google/src/credential.rs Line 214 in 52e2b7e
|
Yep, still working on migrating all usages. |
Currently, there exist a number of functions used in async contexts that perform blocking IO. This can cause hard to debug issues (https://ryhl.io/blog/async-what-is-blocking/). An initial proposal which replaced
std::fs
calls on non-wasm targets bytokio::fs
calls was done in #458 but rejected as it would have meant not being generic over async runtimes.The text was updated successfully, but these errors were encountered: