mirror of
https://github.com/minio/minio.git
synced 2025-04-09 14:10:10 -04:00
fix: throttling of events during their replay (#9188)
This commit is contained in:
parent
ff932ca2a0
commit
e7a0be5bd3
@ -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…
x
Reference in New Issue
Block a user