mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 14:44:22 +01:00
chainntnfs+queue: move ConcurrentQueue to own package 'queue'
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"github.com/btcsuite/btcwallet/chain"
|
||||
"github.com/btcsuite/btcwallet/wtxmgr"
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/queue"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -996,7 +997,7 @@ type blockEpochRegistration struct {
|
||||
|
||||
epochChan chan *chainntnfs.BlockEpoch
|
||||
|
||||
epochQueue *chainntnfs.ConcurrentQueue
|
||||
epochQueue *queue.ConcurrentQueue
|
||||
|
||||
bestBlock *chainntnfs.BlockEpoch
|
||||
|
||||
@@ -1021,7 +1022,7 @@ func (b *BitcoindNotifier) RegisterBlockEpochNtfn(
|
||||
bestBlock *chainntnfs.BlockEpoch) (*chainntnfs.BlockEpochEvent, error) {
|
||||
|
||||
reg := &blockEpochRegistration{
|
||||
epochQueue: chainntnfs.NewConcurrentQueue(20),
|
||||
epochQueue: queue.NewConcurrentQueue(20),
|
||||
epochChan: make(chan *chainntnfs.BlockEpoch, 20),
|
||||
cancelChan: make(chan struct{}),
|
||||
epochID: atomic.AddUint64(&b.epochClientCounter, 1),
|
||||
|
||||
Reference in New Issue
Block a user