2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00

sweepbatcher: rename a private const

Renamed defaultPublishDelay to defaultTestnetPublishDelay. Its godoc was already
for defaultTestnetPublishDelay, but the const was named defaultPublishDelay.
This commit is contained in:
Boris Nagaev 2024-07-30 23:39:06 -03:00
parent 6d3a488f2f
commit ce4a4d97a5
No known key found for this signature in database

View File

@ -44,7 +44,7 @@ const (
// defaultTestnetPublishDelay is the default publish delay that is used
// for testnet.
defaultPublishDelay = 500 * time.Millisecond
defaultTestnetPublishDelay = 500 * time.Millisecond
)
type BatcherStore interface {
@ -536,7 +536,7 @@ func (b *Batcher) spinUpBatch(ctx context.Context) (*batch, error) {
cfg.batchPublishDelay = defaultMainnetPublishDelay
default:
cfg.batchPublishDelay = defaultPublishDelay
cfg.batchPublishDelay = defaultTestnetPublishDelay
}
batchKit := b.newBatchKit()