Skip to content

Add documentation for BackoffConfig::normalised method #315

Description

@coderabbitai

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:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions