multi: address funlen linter

These should be addressed in a refactor PR.
This commit is contained in:
Elle Mouton 2024-11-13 11:17:12 +02:00
parent eea9022459
commit 259b811795
No known key found for this signature in database
GPG Key ID: D7D916376026F177
3 changed files with 6 additions and 0 deletions

View File

@ -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) (

View File

@ -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) {

View File

@ -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,