From 2fd4c1e318e3108e59282189c2a13e6686956319 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 8 Jun 2022 21:44:21 +0800 Subject: [PATCH] channeldb+routing: fix format --- channeldb/payment_control.go | 6 ++++-- routing/payment_lifecycle.go | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/channeldb/payment_control.go b/channeldb/payment_control.go index 7bd00e4d4..3328f086d 100644 --- a/channeldb/payment_control.go +++ b/channeldb/payment_control.go @@ -43,7 +43,8 @@ var ( // ErrPaymentTerminal is returned if we attempt to alter a payment that // already has reached a terminal condition. - ErrPaymentTerminal = errors.New("payment has reached terminal condition") + ErrPaymentTerminal = errors.New("payment has reached terminal " + + "condition") // ErrAttemptAlreadySettled is returned if we try to alter an already // settled HTLC attempt. @@ -77,7 +78,8 @@ var ( // ErrMPPTotalAmountMismatch is returned if we try to register an MPP // shard where the total amount doesn't match existing shards. - ErrMPPTotalAmountMismatch = errors.New("mp payment total amount mismatch") + ErrMPPTotalAmountMismatch = errors.New("mp payment total amount " + + "mismatch") // errNoAttemptInfo is returned when no attempt info is stored yet. errNoAttemptInfo = errors.New("unable to find attempt info for " + diff --git a/routing/payment_lifecycle.go b/routing/payment_lifecycle.go index b87dddef1..8cf7354c4 100644 --- a/routing/payment_lifecycle.go +++ b/routing/payment_lifecycle.go @@ -337,7 +337,6 @@ lifecycle: // Now that the shard was successfully sent, launch a go // routine that will handle its result when its back. shardHandler.collectResultAsync(attempt) - } }