-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support registering services against specific hosts #2320
Conversation
Ruby flake should be unrelated; Jenkins green. |
void RegisterService(const grpc::string& host, | ||
SynchronousService* service); | ||
|
||
// Register an asynchronous service. New calls will be delevered to cq. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is stale (as that of the other function).
LGTM otherwise |
typedef std::unique_ptr<grpc::string> HostString; | ||
template <class T> struct NamedService { | ||
explicit NamedService(T* s) : service(s) {} | ||
explicit NamedService(const grpc::string& h, T *s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not need explicit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated based on feedback
On Tue, Jul 7, 2015 at 10:44 PM Yang Gao notifications@github.com wrote:
In include/grpc++/server_builder.h
#2320 (comment):@@ -98,9 +111,18 @@ class ServerBuilder {
int* selected_port;
};
- typedef std::unique_ptrgrpc::string HostString;
- template struct NamedService {
- explicit NamedService(T* s) : service(s) {}
- explicit NamedService(const grpc::string& h, T *s)
This does not need explicit?
—
Reply to this email directly or view it on GitHub
https://github.com/grpc/grpc/pull/2320/files#r34117367.
Support registering services against specific hosts
Fixes #2058
Fixes #2055