-
Notifications
You must be signed in to change notification settings - Fork 127
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]: Unable To Use Heimdall From Asynchronous Contexts #71
Comments
Looks like the issue is due to the usage of blocking |
I'll take a look today |
@Jon-Becker unfortunately it doesn't look like a necessarily "simple" solution depending on what the desired solution is. For my personal use case, simply changing the Changes are here if you are interested in taking a look https://github.com/bonedaddy/heimdall-rs/tree/feat/async |
This looks to be minimal effort for a necessary solution. I'll handle this as soon as I have time <3 Thank you so much! |
Actually I was able to find a work around by calling the decoding function like so: tokio::task::spawn_blocking::<_, _>(move || {
// decode
}).await; |
Component
Decompile Library
Version
master, revision
6e6f051e373f7c098ee55c3eab70acc24cb77fa8
Please check the following
Operating System
Linux
Command used to produce the issue
Using
decode_calldata(tx.input.clone().encode_hex())
Describe the issue you are facing
Usage within an asynchronous context results in the following error
The text was updated successfully, but these errors were encountered: