Skip to content

Commit

Permalink
✨ Send retries before new messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigomby committed Oct 18, 2016
1 parent b9a285b commit c6467e3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,19 @@ func (p *pipeline) Run() {
worker := <-p.components[rep.Component].pool
worker <- m
}
continue

default:
}

select {
case m, ok := <-p.retry:
if ok {
rep := m.Reports.Head().(Report)
worker := <-p.components[rep.Component].pool
worker <- m
}
continue

case m, ok := <-p.input:
// If input channel has been closed, close output channel
Expand Down

0 comments on commit c6467e3

Please sign in to comment.