Uh oh!
There was an error while loading. Please reload this page.
Rename SocketAddress from NetAddress - #2549
Conversation
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. |
yanganto
commented
Sep 4, 2023
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. 🙏 |
optout21
commented
Sep 4, 2023
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. |
Uh oh!
There was an error while loading. Please reload this page.
b1449d5 to
d34fcb8CompareTheBlueMatt
commented
Sep 5, 2023
This LGTM, but I kinda want to land #2134, which is getting quite close, first if that's okay. |
yanganto
commented
Sep 6, 2023
Sure, and sorry about this. I did not check if there was a PR work on NetAddress before. |
TheBlueMatt
commented
Sep 6, 2023
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.
tnull
commented
Sep 7, 2023
This needs a rebase now. |
tnull
commented
Sep 8, 2023
Could also consider renaming variables/methods that reflected the |
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.
#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.