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 :) |
G8XSU
left a comment
There was a problem hiding this comment.
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
valentinewallace
left a comment
There was a problem hiding this comment.
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.
We can fix it in post :)
There was a problem hiding this comment.
#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.
Ah, we normally link the PRs so that they go directly to the code changes.
There was a problem hiding this comment.
Got it, I will make it right in future PR
Fix #2358
Please change your imported crate from
NetAddresstoSocketAddressas the following.Also, modify the type
NetAddress::IPv4toSocketAddress::TcpIpV4andNetAddress::IPv6toSocketAddress::TcpIpV6.