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

This commit is contained in:
Praveen raj Mani 2020-03-24 01:04:39 +05:30 committed by GitHub
parent ff932ca2a0
commit e7a0be5bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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