-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to customize max default SizeRange via env var. (#338)
The implementation directly accesses Config::default() from SizeRange::default(). I don't love the implementation for two reasons - It clones the full config on every call to SizeRange::default() - It is hard to test. However, it does achieve the goal. I am open to better ideas! Co-authored-by: Tomas Zemanovic <tzemanovic@gmail.com>
- Loading branch information
1 parent
ffce269
commit 5f87b3d
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters