Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-core: Filter.andThenIf That Doesn't Require a Tuple
Problem The current version of `Filter.andThenIf` requires the user to pass both the conditional and the conditionally applied `Filter` together as a tuple. The ergonomics of this style of method matched a prior version of how Scala code used to be written at Twitter. However, given the current set of standards, this ends up feeling clunky, and requiring additional unnecessary tuple allocations. Solution Provide a variant of the `Filter.andThenIf` method which takes the individual components, the conditional and the conditionally applied `Filter`, as individual parameters. Differential Revision: https://phabricator.twitter.biz/D523010
- Loading branch information
1 parent
51c3e62
commit fb071d9
Showing
3 changed files
with
36 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