-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore(runnable_task): remove async_trait usage #2660
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool that we can avoid usage of the async_trait
. Do we still need this dependency?
crates/services/p2p/src/service.rs
Outdated
@@ -878,6 +877,7 @@ where | |||
B: Broadcast + 'static, | |||
T: TxPool + 'static, | |||
{ | |||
#[allow(clippy::arithmetic_side_effects)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess clippy was ok when the future was boxed, but it started throwing this error when I removed it.
we still need the dependency because Runnable service uses it, I was thinking to remove in a follow up pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can resolve it in this PR? Or is it too many changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in ff12199
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder why it was not caught previously? wouldn't a boxed future also still have the same property that overflow is possible? weird
I think we still need it for implementing third-party traits in some places. But it would be great to get rid of it. |
still need for async_graphql, i tangled with it yesterday and did not have fun with it at all. |
Linked Issues/PRs
Description
should improve performance. breaking changes for anyone using fuel-core as a dependency, more specifically the
RunnableTask
trait. maybe cc: @FuelLabs/data-systems ?Checklist
Before requesting review
After merging, notify other teams
[Add or remove entries as needed]