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

+1 -3
View File
@@ -972,11 +972,9 @@ func (s *SQLStore) FetchPayment(ctx context.Context,
// While inflight payments are typically a small subset, this would improve
// memory efficiency for nodes with unusually high numbers of concurrent
// payments and would better leverage the existing pagination infrastructure.
func (s *SQLStore) FetchInFlightPayments() ([]*MPPayment,
func (s *SQLStore) FetchInFlightPayments(ctx context.Context) ([]*MPPayment,
error) {
ctx := context.TODO()
var mpPayments []*MPPayment
err := s.db.ExecTx(ctx, sqldb.ReadTxOpt(), func(db SQLQueries) error {