We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tokio::runtime::Handle
Store an instance of tokio::runtime::Handle by calling Handle::try_current in the constructor instead of calling it on every RPC call.
Handle::try_current
This also removes the need to create a tokio runtime for every RPC call as well by always requiring a tokio handle to be present at instantiation.
The check for current-thread runtime should also be removed, because we don't want to spawn a runtime as above.
This change was also made in Foundry, see foundry-rs/foundry#7860
The text was updated successfully, but these errors were encountered:
tokio::Handle
No branches or pull requests
Store an instance of
tokio::runtime::Handle
by callingHandle::try_current
in the constructor instead of calling it on every RPC call.This also removes the need to create a tokio runtime for every RPC call as well by always requiring a tokio handle to be present at instantiation.
The check for current-thread runtime should also be removed, because we don't want to spawn a runtime as above.
This change was also made in Foundry, see foundry-rs/foundry#7860
The text was updated successfully, but these errors were encountered: