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-net)!: Rename Endpoint::local_addr to bound_sockets #2366

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

flub
Copy link
Contributor

@flub flub commented Jun 17, 2024

Description

This renames Endpoint::local_addr to Endpoint::bound_sockets. We have
a lot of different meanings for "addr" and also don't really have a
notion of "local_" prefix, since the endpoint is not 1:1 connected
with a peer. The "local_" naming comes from connected sockets which
have local_addr and peer_addr, which is not applicable for the
Endpoint.

Breaking Changes

  • Endpoint::local_addr -> Endpoint::bound_sockets

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • [ ] Tests if relevant.
  • All breaking changes documented.

This renames Endpoint::local_addr to Endpoint::bound_sockets.  We have
a lot of different meanings for "addr" and also don't really have a
notion of "local_" prefix, since the endpoint is not 1:1 connected
with a peer.  The "local_" naming comes from connected sockets which
have local_addr and peer_addr, which is not applicable for the
Endpoint.
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.

Really like the rename. Bound sockets is a lot clearer to me than local addr.
(Local could e.g. also imply loopback/localhost)

@divagant-martian divagant-martian added this pull request to the merge queue Jun 17, 2024
Merged via the queue into main with commit a5e5939 Jun 17, 2024
25 of 26 checks passed
@flub flub deleted the flub/endpoint-api-local-addr-endpoints branch June 18, 2024 08:06
ppodolsky pushed a commit to izihawa/iroh that referenced this pull request Jun 22, 2024
…-computer#2366)

## Description

This renames Endpoint::local_addr to Endpoint::bound_sockets.  We have
a lot of different meanings for "addr" and also don't really have a
notion of "local_" prefix, since the endpoint is not 1:1 connected
with a peer.  The "local_" naming comes from connected sockets which
have local_addr and peer_addr, which is not applicable for the
Endpoint.

## Breaking Changes

- Endpoint::local_addr -> Endpoint::bound_sockets

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- ~~[ ] Tests if relevant.~~
- [x] All breaking changes documented.
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.

3 participants