Skip to content

Commit decbfef

Browse files
Clarify max attempts meaning (#74)
1 parent 5e924a6 commit decbfef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ impl RunRetryPolicy {
9191
self
9292
}
9393

94-
/// Gives up retrying when either at least the given number of attempts is reached,
95-
/// or `max_duration` (if set) is reached first.
94+
/// Gives up retrying when either at least the given number of attempts, including the initial attempt,
95+
/// is reached, or `max_duration` (if set) is reached first.
9696
///
9797
/// **Note:** The number of actual retries may be higher than the provided value.
9898
/// This is due to the nature of the run operation, which executes the closure on the service and sends the result afterward to Restate.

0 commit comments

Comments
 (0)