routing: Add comment to DeleteFailedAttempts func call

This commit is contained in:
ziggie
2025-08-20 09:06:21 +02:00
parent 039b5994f3
commit bf6131ba02

View File

@@ -326,7 +326,9 @@ lifecycle:
// terminal condition. We either return the settled preimage or the // terminal condition. We either return the settled preimage or the
// payment's failure reason. // payment's failure reason.
// //
// Optionally delete the failed attempts from the database. // Optionally delete the failed attempts from the database. Depends on
// the database options deleting attempts is not allowed so this will
// just be a no-op.
err = p.router.cfg.Control.DeleteFailedAttempts(p.identifier) err = p.router.cfg.Control.DeleteFailedAttempts(p.identifier)
if err != nil { if err != nil {
log.Errorf("Error deleting failed htlc attempts for payment "+ log.Errorf("Error deleting failed htlc attempts for payment "+