feat(dates): true-instant date contract — container dates, fs branch, manual edit (#114, #115) #121

Merged
cameron merged 5 commits from feature/true-utc-dates into master 2026-09-25 19:55:15 +00:00
Showing only changes of commit 6f020f4201 - Show all commits
+6 -2
View File
@@ -63,11 +63,15 @@ where
/// ``` /// ```
/// use image_api::utils::retry_with_backoff_if; /// use image_api::utils::retry_with_backoff_if;
/// ///
/// fn is_transient(e: &DbError) -> bool { /* ... */ } /// fn is_transient(e: &std::io::Error) -> bool {
/// // Only retry connection-class failures; a NotFound is deterministic.
/// e.kind() == std::io::ErrorKind::ConnectionRefused
/// }
/// ///
/// let result = retry_with_backoff_if("some-write", 4, is_transient, || { /// let result = retry_with_backoff_if("some-write", 4, is_transient, || {
/// Ok::<_, anyhow::Error>(42) /// Ok::<i32, _>(42)
/// }); /// });
/// assert!(result.is_ok_and(|v| v == 42));
/// ``` /// ```
pub fn retry_with_backoff_if<F, T, E, U: Fn(&E) -> bool>( pub fn retry_with_backoff_if<F, T, E, U: Fn(&E) -> bool>(
label: &str, label: &str,