Skip to content

Commit 5d89790

Browse files
committed
docs(retry): note that the backoff view must track any future HttpRetryOptions multiplier/jitter knobs
1 parent b0a2f04 commit 5d89790

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sdk-core/src/main/kotlin/org/dexpace/sdk/core/http/pipeline/steps/DefaultRetryStep.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ public open class DefaultRetryStep
156156
* - `initialDelay` / `maxDelay` come from the options.
157157
* - `delayMultiplier` (2.0) and `jitter` (0.2) are the canonical shared constants — the
158158
* options object does not expose its own multiplier/jitter, so the SDK defaults apply.
159+
* If [HttpRetryOptions] ever gains configurable multiplier/jitter knobs, this view must
160+
* read them from the options instead of the constants, or the new knobs are silently
161+
* ignored on this stack.
159162
* - `totalTimeout = ZERO` disables the deadline cap: the stage-based step has no budget.
160163
* The `fixedDelay` path never consults this view; it short-circuits in [backoffOrFixed].
161164
*

0 commit comments

Comments
 (0)