routing: rename Fail to FailPayment

This commit renames the method `Fail` to be `FailPayment` to explicitly
address its purpose.
This commit is contained in:
yyforyongyu committed 2022-12-07 18:38:01 +08:00
1 parent 2fd4c1e318
commit d1611c999a
6 files changed
+27 -22

No files matched your search

+4 -1
View File
@@ -457,7 +457,10 @@ func testPaymentControlSubscribeFail(t *testing.T, registerAttempt,
}
// Mark the payment as failed.
if err := pControl.Fail(info.PaymentIdentifier, channeldb.FailureReasonTimeout); err != nil {
err = pControl.FailPayment(
info.PaymentIdentifier, channeldb.FailureReasonTimeout,
)
if err != nil {
t.Fatal(err)
}