Skip to content
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

refactor: forester: use handles when spawning queues #1148

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

sergeytimoshin
Copy link
Contributor

No description provided.

Replace individual task spawning with a vector of `JoinHandle` to manage concurrent tasks more efficiently. Use `join_all` to wait for all tasks to finish and handle errors appropriately.
Rearranged the import of `join_all` for better organization and removed an unnecessary comma.
epoch_info_clone.epoch, // TODO: only clone the necessary fields
epoch_info_clone.forester_epoch_pda.clone(),
&epoch_info_clone.epoch,
&epoch_info_clone.forester_epoch_pda.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove this clone?

@ananas-block ananas-block merged commit 77e5760 into main Sep 3, 2024
7 checks passed
@ananas-block ananas-block deleted the sergey/forester-queue-spawn-refactor branch September 3, 2024 16:09
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.

2 participants