-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
perf: use futures unordered for active requests #4231
Conversation
Codecov Report
... and 22 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
LGTM
@@ -575,27 +575,23 @@ where | |||
|
|||
// Advance all requests. | |||
// We remove each request one by one and add them back. |
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.
nit: comment is not accurate now
replace vec of futures with futures unordered
🤖 Generated by Copilot at 7126599
Improved network transaction requests and added documentation in
reth
crate. The changes useFuturesUnordered
and a customFuture
to handle multiple requests concurrently and handle errors gracefully. The new code is documented with comments and docstrings incrates/net/network/src/transactions.rs
.