Merge pull request #20057 from yashykt/interceptionexample1

Improve comment
pull/20062/head
Yash Tibrewal 6 years ago committed by GitHub
commit 2ba3ad5d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      test/cpp/end2end/client_interceptors_end2end_test.cc

@ -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(

Loading…
Cancel
Save