mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-13 10:21:37 +02:00
sweep: remove redundant loopvar assign
This commit is contained in:
parent
7545bbfa92
commit
f0c4e6dba1
@ -916,11 +916,9 @@ func (t *TxPublisher) processRecords() {
|
|||||||
// For records that are confirmed, we'll notify the caller about this
|
// For records that are confirmed, we'll notify the caller about this
|
||||||
// result.
|
// result.
|
||||||
for requestID, r := range confirmedRecords {
|
for requestID, r := range confirmedRecords {
|
||||||
rec := r
|
|
||||||
|
|
||||||
log.Debugf("Tx=%v is confirmed", r.tx.TxHash())
|
log.Debugf("Tx=%v is confirmed", r.tx.TxHash())
|
||||||
t.wg.Add(1)
|
t.wg.Add(1)
|
||||||
go t.handleTxConfirmed(rec, requestID)
|
go t.handleTxConfirmed(r, requestID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the current height to be used in the following goroutines.
|
// Get the current height to be used in the following goroutines.
|
||||||
@ -928,22 +926,18 @@ func (t *TxPublisher) processRecords() {
|
|||||||
|
|
||||||
// For records that are not confirmed, we perform a fee bump if needed.
|
// For records that are not confirmed, we perform a fee bump if needed.
|
||||||
for requestID, r := range feeBumpRecords {
|
for requestID, r := range feeBumpRecords {
|
||||||
rec := r
|
|
||||||
|
|
||||||
log.Debugf("Attempting to fee bump Tx=%v", r.tx.TxHash())
|
log.Debugf("Attempting to fee bump Tx=%v", r.tx.TxHash())
|
||||||
t.wg.Add(1)
|
t.wg.Add(1)
|
||||||
go t.handleFeeBumpTx(requestID, rec, currentHeight)
|
go t.handleFeeBumpTx(requestID, r, currentHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
// For records that are failed, we'll notify the caller about this
|
// For records that are failed, we'll notify the caller about this
|
||||||
// result.
|
// result.
|
||||||
for requestID, r := range failedRecords {
|
for requestID, r := range failedRecords {
|
||||||
rec := r
|
|
||||||
|
|
||||||
log.Debugf("Tx=%v has inputs been spent by a third party, "+
|
log.Debugf("Tx=%v has inputs been spent by a third party, "+
|
||||||
"failing it now", r.tx.TxHash())
|
"failing it now", r.tx.TxHash())
|
||||||
t.wg.Add(1)
|
t.wg.Add(1)
|
||||||
go t.handleThirdPartySpent(rec, requestID)
|
go t.handleThirdPartySpent(r, requestID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user