Skip to content

Commit 5512800

Browse files
committed
hide isDeadQueueAvailable
1 parent 0dcad00 commit 5512800

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pipeline/backoff.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type RetriableBatcher struct {
1111
outFn RetriableBatcherOutFn
1212
batcher *Batcher
1313
backoffOpts BackoffOpts
14-
IsDeadQueueAvailable bool
14+
isDeadQueueAvailable bool
1515
onRetryError func(err error, events []*Event)
1616
}
1717

@@ -29,7 +29,7 @@ func NewRetriableBatcher(batcherOpts *BatcherOptions, batcherOutFn RetriableBatc
2929
outFn: batcherOutFn,
3030
backoffOpts: opts,
3131
onRetryError: onError,
32-
IsDeadQueueAvailable: opts.IsDeadQueueAvailable,
32+
isDeadQueueAvailable: opts.IsDeadQueueAvailable,
3333
}
3434
batcherBackoff.setBatcher(batcherOpts)
3535
return batcherBackoff
@@ -66,7 +66,7 @@ func (b *RetriableBatcher) Out(data *WorkerData, batch *Batch) {
6666
events = batch.events
6767
}
6868
b.onRetryError(err, events)
69-
if batch != nil && b.IsDeadQueueAvailable {
69+
if batch != nil && b.isDeadQueueAvailable {
7070
batch.reset()
7171
batch.status = BatchStatusInDeadQueue
7272
}

0 commit comments

Comments
 (0)