Skip to content

fix(mev-builder-rs): Parallelize Proposer Schedule Relay Querying#203

Open
refcell wants to merge 1 commit intoralexstokes:mainfrom
refcell:refcell/concurrency-enhancements
Open

fix(mev-builder-rs): Parallelize Proposer Schedule Relay Querying#203
refcell wants to merge 1 commit intoralexstokes:mainfrom
refcell:refcell/concurrency-enhancements

Conversation

@refcell
Copy link

@refcell refcell commented Nov 12, 2023

Description

Addresses a small TODO comment in the mev-builder-rs crate to parallelize ProposerSchedule querying on the relays.

.collect::<FuturesUnordered<_>>();

// Stream the schedules for processing via the auction schedule.
while let Some((i, schedule)) = rx.next().await {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tx needs to be dropped after creating tasks and before processing the rx stream, otherwise it will never close since not all senders will be dropped.

Copy link
Owner

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks nice! ill keep this in mind to revisit soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants