Skip to content

Commit

Permalink
Removed/refactored locking in splunk forward success flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
erdema-ft committed Jul 6, 2018
1 parent 67efee1 commit 7a87041
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ func (logProcessor *logProcessor) Start() {
if err != nil {
// cache again and retry later
logProcessor.Enqueue(s)
} else {
}
mutex.Lock()
if err != nil && level < maxBackoff {
levelUp = true

mutex.Lock()
if level < maxBackoff {
levelUp = true
}
mutex.Unlock()
}
mutex.Unlock()
})
}
}()
Expand Down

0 comments on commit 7a87041

Please sign in to comment.