Skip to content

Commit

Permalink
Merge pull request grpc#20057 from yashykt/interceptionexample1
Browse files Browse the repository at this point in the history
Improve comment
  • Loading branch information
yashykt authored Aug 23, 2019
2 parents 848779b + 088b67d commit 2ba3ad5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/cpp/end2end/client_interceptors_end2end_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ class HijackingInterceptorMakesAnotherCall : public experimental::Interceptor {
EXPECT_EQ(resp_.message(), "Hello");
methods->Hijack();
});
// There isn't going to be any other interesting operation in this batch,
// so it is fine to return
// This is a Unary RPC and we have got nothing interesting to do in the
// PRE_SEND_CLOSE interception hook point for this interceptor, so let's
// return here. (We do not want to call methods->Proceed(). When the new
// RPC returns, we will call methods->Hijack() instead.)
return;
}
if (methods->QueryInterceptionHookPoint(
Expand Down

0 comments on commit 2ba3ad5

Please sign in to comment.