Removing the audit log retry mechanism (#20259)

This commit is contained in:
Sveinn 2024-08-14 17:25:08 -05:00 committed by GitHub
parent 3ffeabdfcb
commit 743ddb196a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 7 deletions

View File

@ -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")