Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Set history limit to None, if unset #297

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Conversation

ryan-lane
Copy link
Contributor

@ryan-lane ryan-lane commented Jul 10, 2020

HISTORY_PAGE_LIMIT uses int_env, which defaults to 0, rather than None. If the limit is set to 0, it'll be sent to the client as an int, which will request history with a limit of 0, rather than None. This change sets HISTORY_PAGE_LIMIT to None if unset, which correctly handles unlimited paging sizes.

@ryan-lane
Copy link
Contributor Author

Fixes #296

@ryan-lane ryan-lane merged commit b8e4daf into master Jul 10, 2020
@ryan-lane ryan-lane deleted the limit-setting-should-be-none branch July 10, 2020 16:46
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants