multi: thread context through FetchInflightPayments
This commit is contained in:
7 files changed
+25
-16
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user