Skip to content

Retry image decoding on DB path #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged

Conversation

blefaudeux
Copy link
Contributor

Better take on #127, may not be enough though

warn!("Failed to decode image from URL: {}. Retrying", url);
warn!("Error: {:?}", e);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this not retry in any case now without the return statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

l65 it'll return if pattern matched to Ok ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes, of course. I totally missed the return statement there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rust is a mix of returns and non-returns (last line without ; is implicitly return), I think it makes it more confusing and was one of the very few design choice mistakes (that I can see at least).

@blefaudeux blefaudeux requested a review from tarek-ayed June 12, 2025 19:44
Copy link
Contributor

@photoroman photoroman left a comment

Choose a reason for hiding this comment

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

LGTM! Sorry for the confusion.

@blefaudeux blefaudeux merged commit bb1fd84 into main Jun 13, 2025
8 checks passed
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