multi: thread context through FetchInflightPayments

This commit is contained in:
ziggie committed 2026-02-25 08:02:23 +01:00
1 parent 25d05be038
commit 10062ca9ac
7 files changed
+25 -16

No files matched your search

+3 -1
View File
@@ -1417,9 +1417,11 @@ func (r *ChannelRouter) BuildRoute(amt fn.Option[lnwire.MilliSatoshi],
// resumePayments fetches inflight payments and resumes their payment
// lifecycles.
func (r *ChannelRouter) resumePayments() error {
ctx := context.TODO()
// Get all payments that are inflight.
log.Debugf("Scanning for inflight payments")
payments, err := r.cfg.Control.FetchInFlightPayments()
payments, err := r.cfg.Control.FetchInFlightPayments(ctx)
if err != nil {
return err
}