Skip to content

Commit 259b811

Browse files
committed
multi: address funlen linter
These should be addressed in a refactor PR.
1 parent eea9022 commit 259b811

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
@@ -4637,6 +4637,8 @@ func encodeCustomChanData(lnChan *channeldb.OpenChannel) ([]byte, error) {
46374637
}
46384638

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

server.go

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

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

0 commit comments

Comments
 (0)