Skip to content

Commit b46373b

Browse files
committed
f - Clarify cache entry removal comment
1 parent 5cd7307 commit b46373b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-invoice/src/payment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ where
280280
log_trace!(self.logger, "Payment {} rejected by destination; not retrying (attempts: {})", log_bytes!(payment_hash.0), attempts);
281281
}
282282

283-
// Either the payment was rejected, exceeded the maximum attempts, or failed.
283+
// Either the payment was rejected, the maximum attempts were exceeded, or an
284+
// error occurred when attempting to retry.
284285
entry.remove();
285286
} else {
286287
log_trace!(self.logger, "Unknown payment {}; cannot retry)", log_bytes!(payment_hash.0));

0 commit comments

Comments
 (0)