-
Notifications
You must be signed in to change notification settings - Fork 794
async usage of svm-rs
#1259
Comments
this is unfortunatelly a limitation of reqwest::blocking what we could do
runtime::Builder::new_current_thread()
.enable_io()
.build().unwrap().block_on(async {svm::install})
actually not sure about the performance benefits of 2 over 1 |
OK makes sense, so I think let's go with:
@mattsse mentioned there might be some performance change if using single vs multi threaded runtime, but I think this is a case where it shouldn't matter that much, given that it's a single request. |
@gakonst and why don't we ethers-rs/ethers-solc/src/compile/mod.rs Line 376 in eb94e53
|
I guess that also works :D |
vote close @gakonst |
second @mattsse. my foundry integration tests seem to be fixed |
Is your feature request related to a problem? Please describe.
usage of
svm-rs
with ablocking
feature inside a tokio runtime leads to the following errorCannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
reqwest::blocking doesn't behave well inside another tokio rt
Describe the solution you'd like
use
svm
async threadboundcc @mattsse
The text was updated successfully, but these errors were encountered: