Skip to content

docs(client): document reconnect config default values#827

Open
jenish-25 wants to merge 1 commit into
rpcpool:masterfrom
jenish-25:docs/reconnect-config-defaults
Open

docs(client): document reconnect config default values#827
jenish-25 wants to merge 1 commit into
rpcpool:masterfrom
jenish-25:docs/reconnect-config-defaults

Conversation

@jenish-25

Copy link
Copy Markdown

The auto-reconnect support added in 13.1.0 exposes ReconnectConfig and Backoff, but their default values were only discoverable by reading the crate source (see #812).

This adds rustdoc to ReconnectConfig and Backoff and their fields, documenting the defaults:

  • backoff.initial_interval: 10ms
  • backoff.multiplier: 2.0
  • backoff.max_retries: 3
  • slot_retention: 250 slots

Docs-only; no behavior change. Verified with cargo doc (no broken intra-doc links) and cargo fmt --check.

Closes #812

The auto-reconnect support added in 13.1.0 exposes `ReconnectConfig` and
`Backoff`, but their default values were only discoverable by reading the
crate source (rpcpool#812). Add rustdoc to both structs and their fields
documenting the defaults: backoff 10ms initial interval, 2.0 multiplier,
3 retries; slot_retention 250 slots.

Closes rpcpool#812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No documentation for default values for reconnect config

1 participant