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): Remove custom impl of SharedAbortingJoinHandle #2715

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

matheus23
Copy link
Contributor

Description

Removes our custom implementation of SharedAbortingJoinHandle in favor of a combination of

  • futures_util::future::Shared
  • futures_util::future::MapErr and
  • tokio_util::task::AbortOnDropHandle

Breaking Changes

Should all be internal, so none.

Notes & open questions

We need to turn the JoinError to a String, because JoinError is !Send, but String is.
This is exactly the same behavior as what our custom SharedAbortingJoinHandle was doing before.

Change checklist

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

Copy link

github-actions bot commented Sep 6, 2024

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

Last updated: 2024-09-06T10:05:11Z

iroh/src/node.rs Show resolved Hide resolved
@matheus23 matheus23 added this pull request to the merge queue Sep 6, 2024
Merged via the queue into main with commit 098b11f Sep 6, 2024
28 checks passed
@matheus23 matheus23 deleted the matheus23/remove-shared-aborting-join-handle branch September 6, 2024 12:14
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.

2 participants