fix: throttling of events during their replay (#9188)

master
Praveen raj Mani 5 years ago committed by GitHub
parent ff932ca2a0
commit e7a0be5bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/event/target/store.go

@ -112,9 +112,10 @@ func sendEvents(target event.Target, eventKeyCh <-chan string, doneCh <-chan str
loggerOnce(context.Background(), loggerOnce(context.Background(),
fmt.Errorf("target.Send() failed with '%w'", err), fmt.Errorf("target.Send() failed with '%w'", err),
target.ID()) target.ID())
continue
} }
// Retrying after 3secs back-off
select { select {
case <-retryTicker.C: case <-retryTicker.C:
case <-doneCh: case <-doneCh:

Loading…
Cancel
Save