utils: refactor SelectHopHints to use narrower interface

This commit is contained in:
Slyghtning 2024-06-14 12:37:58 +02:00
parent 3b3d3ac64f
commit 5b797055f8
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
3 changed files with 16 additions and 16 deletions

View file

@ -111,8 +111,8 @@ func newLoopInSwap(globalCtx context.Context, cfg *swapConfig,
// Because the Private flag is set, we'll generate our own set
// of hop hints.
request.RouteHints, err = SelectHopHints(
globalCtx, cfg.lnd, request.Amount, DefaultMaxHopHints,
includeNodes,
globalCtx, cfg.lnd.Client, request.Amount,
DefaultMaxHopHints, includeNodes,
)
if err != nil {
return nil, err