Skip to content

Apply suggestions from clippy 1.88#116

Merged
djc merged 3 commits intomainfrom
clippy-1.88
Jun 30, 2025
Merged

Apply suggestions from clippy 1.88#116
djc merged 3 commits intomainfrom
clippy-1.88

Conversation

@djc
Copy link
Owner

@djc djc commented Jun 27, 2025

No description provided.

@djc djc requested a review from cpu June 27, 2025 07:31
@djc djc mentioned this pull request Jun 27, 2025
impl RetryState {
async fn wait(&mut self, after: Option<SystemTime>) -> ControlFlow<(), ()> {
if self.tries == 0 {
if self.start.elapsed() > self.timeout {
Copy link
Owner Author

Choose a reason for hiding this comment

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

Uhh, not sure how this interaction will work? Seems like a strong chance the server might yield a Retry-After of more than the timeout set here, which means we'll only ever try once...

Copy link
Contributor

Choose a reason for hiding this comment

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

One option is to preemptively end the retry if the next iteration would exceed the timeout. This is how acme4j does it.
On the other hand, if the retry cause can be resolved inbetween (e.g. load of the server), one retry at the end of the timebox might be helpful.

@djc djc merged commit b7c858a into main Jun 30, 2025
10 checks passed
@djc djc deleted the clippy-1.88 branch June 30, 2025 10:51
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.

3 participants