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(iroh): magical pin projections #3060

Merged
merged 4 commits into from
Dec 18, 2024
Merged

refactor(iroh): magical pin projections #3060

merged 4 commits into from
Dec 18, 2024

Conversation

dignifiedquire
Copy link
Contributor

@dignifiedquire dignifiedquire commented Dec 18, 2024

Description

Avoids the Box::pin inside of the loop

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

Sorry, something went wrong.

@dignifiedquire dignifiedquire requested a review from flub December 18, 2024 11:33
Copy link

github-actions bot commented Dec 18, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3060/docs/iroh/

Last updated: 2024-12-18T14:44:52Z

@@ -182,7 +182,7 @@ impl ActiveRelayActor {
// When this future has an inner, it is a future which is currently sending
// something to the relay server. Nothing else can be sent to the relay server at
// the same time.
let mut relay_send_fut = MaybeFuture::none();
let mut relay_send_fut = std::pin::pin!(MaybeFuture::default());
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW I do prefer the ::none() constructor over ::default(). It feels more coherent with .set_none(), .is_none() etc. But I can live with ::default() if you strongly prefer it.

Copy link

github-actions bot commented Dec 18, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: a7a0b78

@flub flub enabled auto-merge December 18, 2024 14:43
@flub flub added this pull request to the merge queue Dec 18, 2024
Merged via the queue into main with commit a4d4e7d Dec 18, 2024
30 checks passed
@dignifiedquire dignifiedquire deleted the refactor-project-pins branch December 18, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants