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

feat(iroh-net): add Endpoint::watch_node_addr #2732

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Frando
Copy link
Member

@Frando Frando commented Sep 16, 2024

Description

This adds Endpoint::watch_node_addr which returns a stream that yields NodeAddr.

We have Endpoint::direct_addresses and Endpoint::watch_home_relay. In #2731 what I needed, and what I suspect apps will oftenly need, is the combination of both: Give me a stream that yields the endpoint's NodeAddr whenever it changes, either due to a change in our home relay, or due to a change in our discovered addresses.

Breaking Changes

Notes & open questions

  • A test would be good to add still

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 16, 2024

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

Last updated: 2024-09-16T14:21:28Z

@Frando Frando marked this pull request as ready for review September 16, 2024 13:16
@flub flub self-assigned this Sep 17, 2024
@flub
Copy link
Contributor

flub commented Sep 17, 2024

Assigning to myself as @Frando is now OOO

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.

2 participants