-
Notifications
You must be signed in to change notification settings - Fork 404
Make InvoicePayer
's Router
Deref
#1960
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
Make InvoicePayer
's Router
Deref
#1960
Conversation
As of HEAD the `ChannelManager` is parametrized by a `Router`, while `InvoicePayer` also owns a `Router`. In order to allow for a single object being reused, we make the `InvoicePayer` side `Deref`.
Codecov ReportBase: 90.72% // Head: 90.72% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1960 +/- ##
==========================================
- Coverage 90.72% 90.72% -0.01%
==========================================
Files 97 97
Lines 50579 50579
Branches 50579 50579
==========================================
- Hits 45888 45887 -1
- Misses 4691 4692 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Fine with me. Up to @valentinewallace if she wants to eat the conflicts on this one or if we want to land #1916 first and then you can stop using InvoicePayer
downstream immediately (maybe? or landing that PR quickly as well)
Val also told me that we could just give a dummy |
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
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.
Can't see any conflicts with #1916, LGTM!
As of HEAD the
ChannelManager
is parametrized by aDeref
Router
, whileInvoicePayer
also owns aRouter
. In order to allow for a single object being reused, we make theInvoicePayer
sideDeref
.Note that
InvoicePayer
will be removed anyways soon, but this change should make it easier to work off HEAD until then.