aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-12 10:51:01 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-12-12 10:51:01 -0800
commit42663fb20ec0dc275dbc290c32969f48f5df6f7c (patch)
treebc55df683a598f56ca06be1c80811386632cd3f7
parentaa1cd147291cb57665eccf2dc9baeaa39184f0ba (diff)
Fix bug.
-rw-r--r--src/cpp/common/channel_filter.h2
-rw-r--r--test/cpp/common/channel_filter_test.cc5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/cpp/common/channel_filter.h b/src/cpp/common/channel_filter.h
index 93efe0fc3b..f4652cee77 100644
--- a/src/cpp/common/channel_filter.h
+++ b/src/cpp/common/channel_filter.h
@@ -244,7 +244,7 @@ class CallData {
/// Initializes the call data.
virtual grpc_error *Init(grpc_exec_ctx *exec_ctx, ChannelData *channel_data,
- grpc_channel_element_args *args) {
+ grpc_call_element_args *args) {
return GRPC_ERROR_NONE;
}
diff --git a/test/cpp/common/channel_filter_test.cc b/test/cpp/common/channel_filter_test.cc
index 26d341c2b9..0859cc024b 100644
--- a/test/cpp/common/channel_filter_test.cc
+++ b/test/cpp/common/channel_filter_test.cc
@@ -43,7 +43,8 @@ class MyChannelData : public ChannelData {
public:
MyChannelData() {}
- grpc_error *Init(grpc_exec_ctx *exec_ctx, grpc_channel_element_args *args) {
+ grpc_error *Init(grpc_exec_ctx *exec_ctx, grpc_channel_element_args *args)
+ override {
(void)args->channel_args; // Make sure field is available.
return GRPC_ERROR_NONE;
}
@@ -54,7 +55,7 @@ class MyCallData : public CallData {
MyCallData() {}
grpc_error *Init(grpc_exec_ctx *exec_ctx, ChannelData *channel_data,
- grpc_call_element_args *args) {
+ grpc_call_element_args *args) override {
(void)args->path; // Make sure field is available.
return GRPC_ERROR_NONE;
}