Skip to content

Commit

Permalink
multi: address funlen linter
Browse files Browse the repository at this point in the history
These should be addressed in a refactor PR.
  • Loading branch information
ellemouton committed Nov 14, 2024
1 parent eea9022 commit 259b811
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routing/pathfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ func getOutgoingBalance(ctx context.Context, node route.Vertex,
// source. This is to properly accumulate fees that need to be paid along the
// path and accurately check the amount to forward at every node against the
// available bandwidth.
//
//nolint:funlen
func findPath(ctx context.Context, g *graphParams, r *RestrictParams,
cfg *PathFindingConfig, self, source, target route.Vertex,
amt lnwire.MilliSatoshi, timePref float64, finalHtlcExpiry int32) (
Expand Down
2 changes: 2 additions & 0 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -4637,6 +4637,8 @@ func encodeCustomChanData(lnChan *channeldb.OpenChannel) ([]byte, error) {
}

// createRPCOpenChannel creates an *lnrpc.Channel from the *channeldb.Channel.
//
//nolint:funlen
func createRPCOpenChannel(ctx context.Context, r *rpcServer,
dbChannel *channeldb.OpenChannel, isActive, peerAliasLookup bool) (
*lnrpc.Channel, error) {
Expand Down
2 changes: 2 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ func noiseDial(idKey keychain.SingleKeyECDH,

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

0 comments on commit 259b811

Please sign in to comment.