Skip to content

Commit

Permalink
Fix doctest for the retry policy
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed May 13, 2024
1 parent 46d3f67 commit a7e81b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/types/src/retries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const DEFAULT_JITTER_MULTIPLIER: f32 = 0.3;
/// use restate_types::retries::RetryPolicy;
///
/// // Define the retry policy
/// let retry_policy = RetryPolicy::fixed_delay(Duration::from_millis(100), 10);
/// let retry_policy = RetryPolicy::fixed_delay(Duration::from_millis(100), Some(10));
///
/// // Transform it in an iterator
/// let mut retry_iter = retry_policy.into_iter();
Expand Down

0 comments on commit a7e81b0

Please sign in to comment.