multi: thread context through FailAttempt
This commit is contained in:
10 files changed
+33
-26
No files matched your search
@@ -1695,11 +1695,9 @@ func (s *SQLStore) SettleAttempt(ctx context.Context, paymentHash lntypes.Hash,
|
||||
// the PaymentWriter interface and ultimately the DB interface. It represents
|
||||
// step 3b in the payment lifecycle control flow (step 3a is SettleAttempt),
|
||||
// called after RegisterAttempt when an HTLC fails.
|
||||
func (s *SQLStore) FailAttempt(paymentHash lntypes.Hash,
|
||||
func (s *SQLStore) FailAttempt(ctx context.Context, paymentHash lntypes.Hash,
|
||||
attemptID uint64, failInfo *HTLCFailInfo) (*MPPayment, error) {
|
||||
|
||||
ctx := context.TODO()
|
||||
|
||||
var mpPayment *MPPayment
|
||||
|
||||
err := s.db.ExecTx(ctx, sqldb.WriteTxOpt(), func(db SQLQueries) error {
|
||||
|
||||
Reference in new issue
Block a user