mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-20 13:53:19 +02:00
Merge pull request #9331 from yyforyongyu/fix-lll
multi: rename `lll` to `ll` and remove unused `nolint`
This commit is contained in:
commit
e30e43e644
@ -526,7 +526,7 @@ func New(cfg Config, selfKeyDesc *keychain.KeyDescriptor) *AuthenticatedGossiper
|
|||||||
futureMsgs: newFutureMsgCache(maxFutureMessages),
|
futureMsgs: newFutureMsgCache(maxFutureMessages),
|
||||||
quit: make(chan struct{}),
|
quit: make(chan struct{}),
|
||||||
chanPolicyUpdates: make(chan *chanPolicyUpdateRequest),
|
chanPolicyUpdates: make(chan *chanPolicyUpdateRequest),
|
||||||
prematureChannelUpdates: lru.NewCache[uint64, *cachedNetworkMsg]( //nolint: lll
|
prematureChannelUpdates: lru.NewCache[uint64, *cachedNetworkMsg]( //nolint: ll
|
||||||
maxPrematureUpdates,
|
maxPrematureUpdates,
|
||||||
),
|
),
|
||||||
channelMtx: multimutex.NewMutex[uint64](),
|
channelMtx: multimutex.NewMutex[uint64](),
|
||||||
|
@ -616,7 +616,7 @@ func fetchAmpState(ctx context.Context, db SQLInvoiceQueries, invoiceID int64,
|
|||||||
|
|
||||||
invoiceKeys[key] = struct{}{}
|
invoiceKeys[key] = struct{}{}
|
||||||
|
|
||||||
if htlc.State != HtlcStateCanceled { //nolint: lll
|
if htlc.State != HtlcStateCanceled { //nolint: ll
|
||||||
amtPaid += htlc.Amt
|
amtPaid += htlc.Amt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,10 +46,10 @@ func feeDecoder(r io.Reader, val interface{}, buf *[8]byte, l uint64) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var baseFee, feeRate uint32
|
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
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user