Skip to content

fix(docs): resource_poll_interval's doc comment claims the wrong default - #1593

Open
CaptainVirgil wants to merge 1 commit into
moghtech:mainfrom
CaptainVirgil:fix/resource-poll-interval-doc
Open

fix(docs): resource_poll_interval's doc comment claims the wrong default#1593
CaptainVirgil wants to merge 1 commit into
moghtech:mainfrom
CaptainVirgil:fix/resource-poll-interval-doc

Conversation

@CaptainVirgil

Copy link
Copy Markdown

Summary

resource_poll_interval's doc comment says "Default: 5-min.", but default_poll_interval() (in the same file) actually returns Timelength::OneHour. The two have disagreed since the field was introduced.

Anyone relying on the doc comment rather than reading default_poll_interval() directly will assume resources are polled 12x more often than they actually are, and could misread a genuinely-normal gap of up to an hour (with no corresponding log output, since the refresh loop only logs on failure) as a stuck/wedged sync.

What changed

One line: the doc comment now says Default: 1-hr., matching the actual code. Not touching the default value itself — that's a behavior decision for the maintainers, this is just correcting the documentation to match what already ships.

Test plan

  • Doc-comment-only change, no behavior affected.

default_poll_interval() returns Timelength::OneHour, but the field's
doc comment says "Default: 5-min." Anyone relying on the doc comment
(rather than reading default_poll_interval() itself) will build
monitoring or automation around a poll cadence 12x faster than what
actually runs, and see gaps of up to an hour with no corresponding log
output as unexplained.

Corrects the comment to match the code. Not touching the default value
itself, since that's a behavior decision and this is just a doc fix.
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.

1 participant