Skip to content

Commit 89fbf9a

Browse files
committed
sweepbatcher: rm unused field batch.blockEpochChan
1 parent 06ed714 commit 89fbf9a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sweepbatcher/sweep_batch.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ type batch struct {
214214
// currentHeight is the current block height.
215215
currentHeight int32
216216

217-
// blockEpochChan is the channel over which block epoch notifications
218-
// are received.
219-
blockEpochChan chan int32
220-
221217
// spendChan is the channel over which spend notifications are received.
222218
spendChan chan *chainntnfs.SpendDetail
223219

@@ -362,7 +358,6 @@ func NewBatch(cfg batchConfig, bk batchKit) *batch {
362358
id: -1,
363359
state: Open,
364360
sweeps: make(map[lntypes.Hash]sweep),
365-
blockEpochChan: make(chan int32),
366361
spendChan: make(chan *chainntnfs.SpendDetail),
367362
confChan: make(chan *chainntnfs.TxConfirmation, 1),
368363
reorgChan: make(chan struct{}, 1),
@@ -407,7 +402,6 @@ func NewBatchFromDB(cfg batchConfig, bk batchKit) (*batch, error) {
407402
state: bk.state,
408403
primarySweepID: bk.primaryID,
409404
sweeps: bk.sweeps,
410-
blockEpochChan: make(chan int32),
411405
spendChan: make(chan *chainntnfs.SpendDetail),
412406
confChan: make(chan *chainntnfs.TxConfirmation, 1),
413407
reorgChan: make(chan struct{}, 1),

0 commit comments

Comments
 (0)