multi: pass reset to GraphSession

This commit is contained in:
Elle Mouton committed 2025-07-15 11:25:09 +02:00
1 parent e17fd58a1d
commit b3f3766fe6
9 files changed
+23 -14

No files matched your search

+5 -1
View File
@@ -343,7 +343,11 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
}
for {
err := p.graphSessFactory.GraphSession(findPath)
err := p.graphSessFactory.GraphSession(
findPath, func() {
path = nil
},
)
// If there is an error, and it is not a path finding error, we
// return it immediately.
if err != nil && !lnutils.ErrorAs[*pathFindingError](err) {