Skip to content

add retry_operation_indefinitely and retry_operation_while_indefinitely#3

Merged
sunshowers merged 4 commits intomainfrom
sunshowers/spr/add-retry_operation_indefinitely-and-retry_operation_while_indefinitely
Mar 9, 2026
Merged

add retry_operation_indefinitely and retry_operation_while_indefinitely#3
sunshowers merged 4 commits intomainfrom
sunshowers/spr/add-retry_operation_indefinitely-and-retry_operation_while_indefinitely

Conversation

@sunshowers
Copy link
Copy Markdown
Collaborator

@sunshowers sunshowers commented Mar 6, 2026

See #2.

I've tested this with the new test added in oxidecomputer/omicron#9997. I've also tested a local change which enables the clippy::disallowed_methods lint in omicron for retry_operation and retry_operation_while, suggesting use of _indefinitely instead. I believe that should be a complete structural fix for #2.

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@sunshowers sunshowers requested review from jmpesp and smklein March 7, 2026 22:48
}
let delay = delays
.next()
.expect("infinite backoff iterator produced a delay");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sunshowers
Copy link
Copy Markdown
Collaborator Author

Thanks @jmpesp -- going to get this out and update omicron today.

@sunshowers sunshowers merged commit 4d32065 into main Mar 9, 2026
3 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/add-retry_operation_indefinitely-and-retry_operation_while_indefinitely branch March 9, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants