-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-core: Add Address.ServiceFactory.apply Without Addr.Metadata
Problem It's awkward ergonomically that `Address.apply` that takes a `ServiceFactory` doesn't require `Addr.Metadata`, but the more specific `Address.ServiceFactory.apply` does require `Addr.Metadata`. It's a rare scenario where a user of the API would be supplying `Addr.Metadata` and so it would be nicer if the `Address.ServiceFactory.apply` method did not require it. Solution Add a variant of `Address.ServiceFactory.apply` which does not require `Addr.Metadata` and defaults that value to `Addr.Metadata.empty`. Differential Revision: https://phabricator.twitter.biz/D605438
- Loading branch information
1 parent
56e904e
commit 11971f0
Showing
3 changed files
with
46 additions
and
0 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