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): Replace timer module with AbortOnDropHandle and sleep #3141

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

matheus23
Copy link
Contributor

Description

I find this easier to reason about. Better this than having to understand an additional concept (the golang timer).

Notes & open questions

This is opinionated. I'm not married to this, so feel free to critique.

This also makes it such that when the MagicSocket is dropped (/the NodeMap is dropped), it'll abort all these tasks.

Change checklist

  • Self-review.

@matheus23 matheus23 added this to the v0.32.0 milestone Jan 21, 2025
@matheus23 matheus23 self-assigned this Jan 21, 2025
@matheus23 matheus23 requested a review from flub January 21, 2025 14:56
Copy link

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

Last updated: 2025-01-21T14:58:36Z

Copy link

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: 40911a6

Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

Totally agree.

@flub flub added this pull request to the merge queue Jan 22, 2025
Merged via the queue into main with commit 43e9805 Jan 22, 2025
27 checks passed
@matheus23 matheus23 deleted the matheus23/remove-golang-timer branch January 22, 2025 12:08
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