Skip to content

Doc updates to nimble options#286

Merged
whatyouhide merged 2 commits into
elixir-broadway:mainfrom
balexand:docs
Feb 16, 2022
Merged

Doc updates to nimble options#286
whatyouhide merged 2 commits into
elixir-broadway:mainfrom
balexand:docs

Conversation

@balexand
Copy link
Copy Markdown
Contributor

@balexand balexand commented Feb 16, 2022

There are several places in the docs where the defaults are rendered twice because the defaults are hardcoded into the doc string and rendered by nimble_options.

image

min_demand is different because no default is set in the nimble_options definition. In this case, I believe the docs were inaccurate when they said, "Default value is 5." If I'm understanding correctly, this line in gen_stage is where the default for min_demand is set to half of max_demand. This value will not necessarily be 5.

Copy link
Copy Markdown
Collaborator

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice, good catch! ❤️

@whatyouhide whatyouhide merged commit 4e2ea17 into elixir-broadway:main Feb 16, 2022
@balexand balexand deleted the docs branch February 16, 2022 14:29
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.

2 participants