You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Peeking in the source, yep, it does load a file from the disk. Thinking more about what exactly it's doing, that's not surprising. I'd recommend trying to only build one or a couple clients and sharing them.
I suppose one option is that you could load the native cert yourself manually (asynchronously), add it as a root certificate to the reqwest builder, and not use the rustls-tls-native-roots feature.
repro
Cargo.toml
this produces the following flamegraph, which include loading certs
std::fs
.Not sure what's a nice solution as wrapping the load in
tokio::spawn_blocking
would introduce a breaking change.The text was updated successfully, but these errors were encountered: