Skip to content

Commit

Permalink
Merge pull request #9331 from yyforyongyu/fix-lll
Browse files Browse the repository at this point in the history
multi: rename `lll` to `ll` and remove unused `nolint`
  • Loading branch information
guggero authored Dec 4, 2024
2 parents 48fba10 + d108e14 commit e30e43e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion discovery/gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func New(cfg Config, selfKeyDesc *keychain.KeyDescriptor) *AuthenticatedGossiper
futureMsgs: newFutureMsgCache(maxFutureMessages),
quit: make(chan struct{}),
chanPolicyUpdates: make(chan *chanPolicyUpdateRequest),
prematureChannelUpdates: lru.NewCache[uint64, *cachedNetworkMsg]( //nolint: lll
prematureChannelUpdates: lru.NewCache[uint64, *cachedNetworkMsg]( //nolint: ll
maxPrematureUpdates,
),
channelMtx: multimutex.NewMutex[uint64](),
Expand Down
2 changes: 1 addition & 1 deletion invoices/sql_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ func fetchAmpState(ctx context.Context, db SQLInvoiceQueries, invoiceID int64,

invoiceKeys[key] = struct{}{}

if htlc.State != HtlcStateCanceled { //nolint: lll
if htlc.State != HtlcStateCanceled { //nolint: ll
amtPaid += htlc.Amt
}
}
Expand Down
4 changes: 2 additions & 2 deletions lnwire/typed_fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ func feeDecoder(r io.Reader, val interface{}, buf *[8]byte, l uint64) error {
}

var baseFee, feeRate uint32
if err := tlv.DUint32(r, &baseFee, buf, 4); err != nil { //nolint: gomnd,lll
if err := tlv.DUint32(r, &baseFee, buf, 4); err != nil {
return err
}
if err := tlv.DUint32(r, &feeRate, buf, 4); err != nil { //nolint: gomnd,lll
if err := tlv.DUint32(r, &feeRate, buf, 4); err != nil {
return err
}

Expand Down

0 comments on commit e30e43e

Please sign in to comment.