multi: update to fn v2
This commit is contained in:
167 files changed
+372
-302
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
lnwire "github.com/lightningnetwork/lnd/channeldb/migration/lnwire21"
|
||||
"github.com/lightningnetwork/lnd/fn"
|
||||
"github.com/lightningnetwork/lnd/fn/v2"
|
||||
"github.com/lightningnetwork/lnd/tlv"
|
||||
)
|
||||
|
||||
@@ -371,7 +371,7 @@ func extractMCRoute(r *Route) *mcRoute {
|
||||
// extractMCHops extracts the Hop fields that MC actually uses from a slice of
|
||||
// Hops.
|
||||
func extractMCHops(hops []*Hop) mcHops {
|
||||
return fn.Map(extractMCHop, hops)
|
||||
return fn.Map(hops, extractMCHop)
|
||||
}
|
||||
|
||||
// extractMCHop extracts the Hop fields that MC actually uses from a Hop.
|
||||
|
||||
Reference in new issue
Block a user