-
Notifications
You must be signed in to change notification settings - Fork 378
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
Rename SocketAddress from NetAddress #2549
Conversation
484fec3
to
8fe6072
Compare
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2549 +/- ##
==========================================
- Coverage 90.63% 90.58% -0.05%
==========================================
Files 110 110
Lines 58199 57526 -673
Branches 58199 57526 -673
==========================================
- Hits 52747 52111 -636
+ Misses 5452 5415 -37
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. |
It seems that the failing test cases did not relate to this PR. If something I need to change on this PR, please kindly let me know. 🙏 |
Could you add to the PR description how users of LDK need to adapt their code? Just unroll the renames that has to be done (incl. in use statements). Otherwise LGTM. |
b1449d5
to
d34fcb8
Compare
This LGTM, but I kinda want to land #2134, which is getting quite close, first if that's okay. |
Sure, and sorry about this. I did not check if there was a PR work on NetAddress before. |
All good, better than not opening it at all :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
verified that all instanced were renamed.
This needs a rebase now. |
d34fcb8
to
c2afb4a
Compare
Could also consider renaming variables/methods that reflected the |
c2afb4a
to
b1bedcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sticking with this!
@@ -0,0 +1 @@ | |||
* The `NetAddress` has been moved to `SocketAddress`. The fieds `IPv4` and `IPv6` are also rename to `TcpIpV4` and `TcpIpV6` (#2358). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR number is off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can fix it in post :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2348 is the issue. I thought it was much clearer the reason we doing this, and also linked to the PR if the user wants to see the code diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, we normally link the PRs so that they go directly to the code changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, I will make it right in future PR
Fix #2358
Please change your imported crate from
NetAddress
toSocketAddress
as the following.Also, modify the type
NetAddress::IPv4
toSocketAddress::TcpIpV4
andNetAddress::IPv6
toSocketAddress::TcpIpV6
.