-
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 Name.bound Variant Which Takes a Service
Problem For testing Finagle clients, it's extremely useful to be able to pass it a `Service` directly that the client can use instead of talking to a server. This is possible because Finagle has a unified interface between client and server where a server exports a `Service` and a client imports it. Many long time Finagle users don't know that this is possible though because to go from a `Service` to a `Name` (which is necessary for `EndpointerStackClient.newService` et al.) requires multiple hops from `Service` to `ServiceFactory` to `Address` to `Name`. Solution Provide an alternative to `Name.bound` which can take in a `Service` directly and handles the necessary hops for the user. Differential Revision: https://phabricator.twitter.biz/D605745
- Loading branch information
1 parent
11971f0
commit 1422ffd
Showing
4 changed files
with
69 additions
and
1 deletion.
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
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