The public method BackoffConfig::normalised in src/server/runtime.rs lacks Rustdoc explaining its clamping and swap semantics.
What needs to be added:
- Doc comment explaining that
initial_delay and max_delay are each clamped to at least 1ms
- Documentation that if
initial_delay > max_delay the values are swapped
- Usage example showing the normalisation behaviour
Context:
This issue was identified during code review of PR #301.
Backlinks:
The public method
BackoffConfig::normalisedinsrc/server/runtime.rslacks Rustdoc explaining its clamping and swap semantics.What needs to be added:
initial_delayandmax_delayare each clamped to at least 1msinitial_delay > max_delaythe values are swappedContext:
This issue was identified during code review of PR #301.
Backlinks: