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

ref(iroh-net): Don't write the match as fully exhaustive #2585

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

flub
Copy link
Contributor

@flub flub commented Aug 5, 2024

Description

This makes it a bit earier to read. It's harder to figure out if thre
are changes to the ConnectionType though, but let's assume that
doesn't happen too often.

Breaking Changes

None

Notes & open questions

I'm open to other ways of structuring this code. Not entirely sure
what the best shape would be.

Change checklist

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

This makes it a bit earier to read.  It's harder to figure out if thre
are changes to the ConnectionType though, but let's assume that
doesn't happen too often.
@flub flub requested review from matheus23 and Arqu August 5, 2024 08:04
Copy link

github-actions bot commented Aug 5, 2024

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

Last updated: 2024-08-05T08:02:59Z

Copy link
Contributor

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

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

Yes, exactly what I was thinking of originally.
The main goal being: the exact effects of a transfer from connection type A to B on the metrics is easy to read off, similar to looking it up in a table.
I never intended the goal to be exhaustiveness checking & causing a compiler error in case ConnectionType gets modified.

@dignifiedquire dignifiedquire added this to the v0.22.0 milestone Aug 5, 2024
@flub flub added this pull request to the merge queue Aug 5, 2024
Merged via the queue into main with commit 43ef8b6 Aug 5, 2024
28 checks passed
@flub flub deleted the flub/different-match branch October 4, 2024 08:46
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.

4 participants