routing: rename Fail to FailPayment
This commit renames the method `Fail` to be `FailPayment` to explicitly address its purpose.
This commit is contained in:
6 files changed
+27
-22
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user