We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 334acdf commit b6f3b3eCopy full SHA for b6f3b3e
plugins/outputs/cloudwatchlogs/internal/pusher/queue.go
@@ -182,7 +182,7 @@ func (q *queue) merge(mergeChan chan logs.LogEvent) {
182
func (q *queue) send() {
183
if len(q.batch.events) > 0 {
184
q.batch.addDoneCallback(q.onSuccessCallback(q.batch.bufferedSize))
185
- q.batch.addFailCallback(q.onFailCallback())
+ q.batch.addFailCallback(q.halt)
186
187
// Wait if halted (circuit breaker)
188
q.waitIfHalted()
@@ -291,10 +291,3 @@ func (q *queue) resume() {
291
q.haltCh = make(chan struct{})
292
}
293
294
-
295
-// onFailCallback returns a callback function to be executed after a failed send
296
-func (q *queue) onFailCallback() func() {
297
- return func() {
298
- q.halt()
299
- }
300
-}
0 commit comments