mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-19 15:14:22 +01:00
chainntnfs: fix vet error, don't pass lock by value
This commit is contained in:
@@ -497,7 +497,7 @@ func (b *BtcdNotifier) notifyBlockEpochs(newHeight int32, newSha *chainhash.Hash
|
|||||||
b.wg.Add(1)
|
b.wg.Add(1)
|
||||||
epochClient.wg.Add(1)
|
epochClient.wg.Add(1)
|
||||||
go func(ntfnChan chan *chainntnfs.BlockEpoch, cancelChan chan struct{},
|
go func(ntfnChan chan *chainntnfs.BlockEpoch, cancelChan chan struct{},
|
||||||
clientWg sync.WaitGroup) {
|
clientWg *sync.WaitGroup) {
|
||||||
|
|
||||||
defer clientWg.Done()
|
defer clientWg.Done()
|
||||||
defer b.wg.Done()
|
defer b.wg.Done()
|
||||||
@@ -512,7 +512,7 @@ func (b *BtcdNotifier) notifyBlockEpochs(newHeight int32, newSha *chainhash.Hash
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
}(epochClient.epochChan, epochClient.cancelChan, epochClient.wg)
|
}(epochClient.epochChan, epochClient.cancelChan, &epochClient.wg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -563,7 +563,7 @@ func (n *NeutrinoNotifier) notifyBlockEpochs(newHeight int32, newSha *chainhash.
|
|||||||
n.wg.Add(1)
|
n.wg.Add(1)
|
||||||
epochClient.wg.Add(1)
|
epochClient.wg.Add(1)
|
||||||
go func(ntfnChan chan *chainntnfs.BlockEpoch, cancelChan chan struct{},
|
go func(ntfnChan chan *chainntnfs.BlockEpoch, cancelChan chan struct{},
|
||||||
clientWg sync.WaitGroup) {
|
clientWg *sync.WaitGroup) {
|
||||||
|
|
||||||
defer clientWg.Done()
|
defer clientWg.Done()
|
||||||
defer n.wg.Done()
|
defer n.wg.Done()
|
||||||
@@ -577,7 +577,7 @@ func (n *NeutrinoNotifier) notifyBlockEpochs(newHeight int32, newSha *chainhash.
|
|||||||
case <-n.quit:
|
case <-n.quit:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}(epochClient.epochChan, epochClient.cancelChan, epochClient.wg)
|
}(epochClient.epochChan, epochClient.cancelChan, &epochClient.wg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user