-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamlined the BlockThresholds definition by re-using Thresholds.
This allows us to easily create a BlockThresholds from an existing Thresholds, which cuts down on redundant code. It also supports applications that need to return a constant-typed object from code that may or may not use blocks; in such cases, we can just promote a Thresholds object to BlockThresholds.
- Loading branch information
Showing
2 changed files
with
54 additions
and
41 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