Skip to content

refactor(transfer example): Always expect one path to be the selected path#3895

Open
matheus23 wants to merge 1 commit intomainfrom
matheus23/ex-transfer-conn-type
Open

refactor(transfer example): Always expect one path to be the selected path#3895
matheus23 wants to merge 1 commit intomainfrom
matheus23/ex-transfer-conn-type

Conversation

@matheus23
Copy link
Member

@matheus23 matheus23 commented Jan 28, 2026

Description

There should never be a situation where no path is selected, so I think we can replace the current if cases with an .expect. If that expect fails, that would be an iroh bug and we should notice that in netsim.

Breaking Changes

I think the way I changed the SelectedPath event, this might change the JSON serialization? So netsim might break.

@github-actions
Copy link

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

Last updated: 2026-01-28T14:42:57Z

@n0bot n0bot bot added this to iroh Jan 28, 2026
@github-project-automation github-project-automation bot moved this to 🚑 Needs Triage in iroh Jan 28, 2026
@dignifiedquire dignifiedquire moved this from 🚑 Needs Triage to 🏗 In progress in iroh Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

1 participant