Skip to content

refactor(iroh-relay)!: improve relay map api#3563

Merged
Frando merged 4 commits intomainfrom
Frando/relay-map-api
Oct 21, 2025
Merged

refactor(iroh-relay)!: improve relay map api#3563
Frando merged 4 commits intomainfrom
Frando/relay-map-api

Conversation

@Frando
Copy link
Copy Markdown
Member

@Frando Frando commented Oct 21, 2025

Description

#3542 included unintended changes to the RelayMap API. This cleans this up: We don't call entries in the relay map endpoints, instead we simply call them relays.

Also improves the API docs and adds some examples for how to work with the FromIterator generic types used in construction and access. And renamed a couple of variables at use site in tests mostly to follow the new pattern.

Breaking Changes

Renamed

  • iroh_relay::RelayMap::get_endpoint -> get
  • iroh_relay::RelayMap::endpoints -> relays
  • iroh_relay::RelayMap::contains_endpoint -> contains

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

@Frando Frando changed the title refactor: improve relay map api refactor(iroh-relay)!: improve relay map api Oct 21, 2025
@Frando Frando marked this pull request as ready for review October 21, 2025 10:48
@dignifiedquire dignifiedquire added this to the v0.94 milestone Oct 21, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 21, 2025

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: 04d26e3

@n0bot n0bot bot added this to iroh Oct 21, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Oct 21, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 21, 2025

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

Last updated: 2025-10-21T12:00:04Z

@Frando Frando enabled auto-merge October 21, 2025 11:58
@Frando Frando added this pull request to the merge queue Oct 21, 2025
Merged via the queue into main with commit a6b8456 Oct 21, 2025
28 of 29 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants