Skip to content

Commit d4500bb

Browse files
committed
Update backoff function arguments
Context is now a required argument for exponential backoff callback. This is not a functional change for us as we were already consuming the same context from the outer function Signed-off-by: irbekrm <[email protected]>
1 parent 9363339 commit d4500bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ func (m *Manager) startRenewalRoutine(volumeID string) (started bool) {
632632
// Instead, retry within the same iteration of the for loop and apply an exponential backoff.
633633
// Because we pass ctx through to the 'wait' package, if the stopCh is closed/context is cancelled,
634634
// we'll immediately stop waiting and 'continue' which will then hit the `case <-stopCh` case in the `select`.
635-
if err := wait.ExponentialBackoffWithContext(ctx, m.backoffConfig, func() (bool, error) {
635+
if err := wait.ExponentialBackoffWithContext(ctx, m.backoffConfig, func(ctx context.Context) (bool, error) {
636636
log.Info("Triggering new issuance")
637637
if err := m.issue(ctx, volumeID); err != nil {
638638
log.Error(err, "Failed to issue certificate, retrying after applying exponential backoff")

0 commit comments

Comments
 (0)