mirror of https://github.com/minio/minio.git
Removing the audit log retry mechanism (#20259)
This commit is contained in:
parent
3ffeabdfcb
commit
743ddb196a
|
@ -562,7 +562,6 @@ func (h *Target) Send(ctx context.Context, entry interface{}) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
retry:
|
||||
select {
|
||||
case h.logCh <- entry:
|
||||
h.totalMessages.Add(1)
|
||||
|
@ -573,12 +572,6 @@ retry:
|
|||
}
|
||||
return nil
|
||||
default:
|
||||
nWorkers := h.workers.Load()
|
||||
if nWorkers < h.maxWorkers {
|
||||
// Just sleep to avoid any possible hot-loops.
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
goto retry
|
||||
}
|
||||
h.totalMessages.Add(1)
|
||||
h.failedMessages.Add(1)
|
||||
return errors.New("log buffer full")
|
||||
|
|
Loading…
Reference in New Issue