Skip to content
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

Merged
merged 6 commits into from
Jul 9, 2015

Conversation

ctiller
Copy link
Member

@ctiller ctiller commented Jul 7, 2015

Fixes #2058
Fixes #2055

@ctiller
Copy link
Member Author

ctiller commented Jul 8, 2015

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.
Copy link
Member

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).

@yang-g
Copy link
Member

yang-g commented Jul 8, 2015

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)
Copy link
Member

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?

Copy link
Member Author

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.

yang-g added a commit that referenced this pull request Jul 9, 2015
Support registering services against specific hosts
@yang-g yang-g merged commit 19512b1 into grpc:master Jul 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants