Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Nov 16, 2016
1 parent 1016d9f commit f693697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/grpc++/support/channel_arguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ class ChannelArguments {
/// Set a textual argument \a value under \a key.
void SetString(const grpc::string& key, const grpc::string& value);

grpc_channel_args c_args() {
/// Return (by value) a c grpc_channel_args structure which points to
/// arguments owned by this ChannelArguments instance
grpc_channel_args c_channel_args() {
grpc_channel_args out;
out.num_args = args_.size();
out.args = args_.empty() ? NULL : &args_[0];
Expand Down
2 changes: 1 addition & 1 deletion test/cpp/microbenchmarks/bm_fullstack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class EndpointPairFixture {
ChannelArguments args;
args.SetString(GRPC_ARG_DEFAULT_AUTHORITY, "test.authority");

grpc_channel_args c_args = args.c_args();
grpc_channel_args c_args = args.c_channel_args();
grpc_transport* transport =
grpc_create_chttp2_transport(&exec_ctx, &c_args, endpoints.client, 1);
GPR_ASSERT(transport);
Expand Down

0 comments on commit f693697

Please sign in to comment.