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 13, 2024
1 parent d04f613 commit 2dc2543
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 @@ -4636,6 +4636,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 @@ -491,6 +491,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 2dc2543

Please sign in to comment.