paymentsdb: implement DeleteFailedAttempts for sql backend
This commit is contained in:
4 files changed
+126
No files matched your search
@@ -29,6 +29,8 @@ DELETE FROM payment_htlc_attempts WHERE payment_id = $1 AND attempt_index IN (
|
||||
)
|
||||
`
|
||||
|
||||
// Delete all failed HTLC attempts for the given payment. Resolution type 2
|
||||
// indicates a failed attempt.
|
||||
func (q *Queries) DeleteFailedAttempts(ctx context.Context, paymentID int64) error {
|
||||
_, err := q.db.ExecContext(ctx, deleteFailedAttempts, paymentID)
|
||||
return err
|
||||
|
||||
@@ -22,6 +22,8 @@ type Querier interface {
|
||||
DeleteChannelPolicyExtraTypes(ctx context.Context, channelPolicyID int64) error
|
||||
DeleteChannels(ctx context.Context, ids []int64) error
|
||||
DeleteExtraNodeType(ctx context.Context, arg DeleteExtraNodeTypeParams) error
|
||||
// Delete all failed HTLC attempts for the given payment. Resolution type 2
|
||||
// indicates a failed attempt.
|
||||
DeleteFailedAttempts(ctx context.Context, paymentID int64) error
|
||||
DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) (sql.Result, error)
|
||||
DeleteNode(ctx context.Context, id int64) error
|
||||
|
||||
Reference in new issue
Block a user