mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-27 14:40:16 +01:00
htlcswitch/link_test: only pass duration to NewBatchTicker
This commit is contained in:
@@ -1497,7 +1497,7 @@ func newSingleLinkTestHarness(chanAmt, chanReserve btcutil.Amount) (
|
|||||||
Registry: invoiceRegistry,
|
Registry: invoiceRegistry,
|
||||||
ChainEvents: &contractcourt.ChainEventSubscription{},
|
ChainEvents: &contractcourt.ChainEventSubscription{},
|
||||||
BatchTicker: ticker,
|
BatchTicker: ticker,
|
||||||
FwdPkgGCTicker: NewBatchTicker(time.NewTicker(5 * time.Second)),
|
FwdPkgGCTicker: NewBatchTicker(5 * time.Second),
|
||||||
// Make the BatchSize and Min/MaxFeeUpdateTimeout large enough
|
// Make the BatchSize and Min/MaxFeeUpdateTimeout large enough
|
||||||
// to not trigger commit updates automatically during tests.
|
// to not trigger commit updates automatically during tests.
|
||||||
BatchSize: 10000,
|
BatchSize: 10000,
|
||||||
@@ -3885,7 +3885,7 @@ func restartLink(aliceChannel *lnwallet.LightningChannel, aliceSwitch *Switch,
|
|||||||
Registry: invoiceRegistry,
|
Registry: invoiceRegistry,
|
||||||
ChainEvents: &contractcourt.ChainEventSubscription{},
|
ChainEvents: &contractcourt.ChainEventSubscription{},
|
||||||
BatchTicker: ticker,
|
BatchTicker: ticker,
|
||||||
FwdPkgGCTicker: NewBatchTicker(time.NewTicker(5 * time.Second)),
|
FwdPkgGCTicker: NewBatchTicker(5 * time.Second),
|
||||||
// Make the BatchSize and Min/MaxFeeUpdateTimeout large enough
|
// Make the BatchSize and Min/MaxFeeUpdateTimeout large enough
|
||||||
// to not trigger commit updates automatically during tests.
|
// to not trigger commit updates automatically during tests.
|
||||||
BatchSize: 10000,
|
BatchSize: 10000,
|
||||||
|
|||||||
Reference in New Issue
Block a user