mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-08 16:34:29 -04:00
Fix broken retry mechanics
dc7511c introduced a parent context check to suppress logging if
it was canceled.
If it was not canceled, the check overwrites the variable err,
which resets every previous real error to nil,
which then leads to fatals because the OnError callback or
the IsRetryable function expect a non-nil error.
Since I cannot reproduce which logs should have been suppressed by
the changes, I removed them completely.
This commit is contained in:
parent
bb51bbb6f9
commit
7f3621e980
1 changed files with 0 additions and 4 deletions
|
|
@ -48,10 +48,6 @@ func WithBackoff(
|
|||
return
|
||||
}
|
||||
|
||||
if err = parentCtx.Err(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if settings.OnError != nil {
|
||||
settings.OnError(time.Since(start), attempt, err, prevErr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue