Skip to content

Commit 2dc2543

Browse files
committed
multi: address funlen linter
These should be addressed in a refactor PR.
1 parent d04f613 commit 2dc2543

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

routing/pathfind.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ func getOutgoingBalance(ctx context.Context, node route.Vertex,
559559
// source. This is to properly accumulate fees that need to be paid along the
560560
// path and accurately check the amount to forward at every node against the
561561
// available bandwidth.
562+
//
563+
//nolint:funlen
562564
func findPath(ctx context.Context, g *graphParams, r *RestrictParams,
563565
cfg *PathFindingConfig, self, source, target route.Vertex,
564566
amt lnwire.MilliSatoshi, timePref float64, finalHtlcExpiry int32) (

rpcserver.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4636,6 +4636,8 @@ func encodeCustomChanData(lnChan *channeldb.OpenChannel) ([]byte, error) {
46364636
}
46374637

46384638
// createRPCOpenChannel creates an *lnrpc.Channel from the *channeldb.Channel.
4639+
//
4640+
//nolint:funlen
46394641
func createRPCOpenChannel(ctx context.Context, r *rpcServer,
46404642
dbChannel *channeldb.OpenChannel, isActive, peerAliasLookup bool) (
46414643
*lnrpc.Channel, error) {

server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ func noiseDial(idKey keychain.SingleKeyECDH,
491491

492492
// newServer creates a new instance of the server which is to listen using the
493493
// passed listener address.
494+
//
495+
//nolint:funlen
494496
func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
495497
dbs *DatabaseInstances, cc *chainreg.ChainControl,
496498
nodeKeyDesc *keychain.KeyDescriptor,

0 commit comments

Comments
 (0)