From 5b39f9a9fbfd74eeb0c2f9fd635ad61fc3856935 Mon Sep 17 00:00:00 2001 From: vjpai <vpai@google.com> Date: Fri, 27 Feb 2015 09:33:00 -0800 Subject: [PATCH] refresh -> Reset --- test/cpp/qps/server_async.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc index fc2459c1a5..c797d8af96 100644 --- a/test/cpp/qps/server_async.cc +++ b/test/cpp/qps/server_async.cc @@ -157,7 +157,7 @@ class AsyncQpsServerTest { // The tag is a pointer to an RPC context to invoke if (ctx->RunNextState() == false) { // this RPC context is done, so refresh it - ctx->refresh(); + ctx->Reset(); } } return; @@ -174,7 +174,7 @@ class AsyncQpsServerTest { ServerRpcContext() {} virtual ~ServerRpcContext(){}; virtual bool RunNextState() = 0;// do next state, return false if all done - virtual void refresh() = 0; // start this back at a clean state + virtual void Reset() = 0; // start this back at a clean state }; static void *tag(ServerRpcContext *func) { return reinterpret_cast<void *>(func); @@ -201,7 +201,7 @@ class AsyncQpsServerTest { } ~ServerRpcContextUnaryImpl() GRPC_OVERRIDE {} bool RunNextState() GRPC_OVERRIDE { return (this->*next_state_)(); } - void refresh() GRPC_OVERRIDE { + void Reset() GRPC_OVERRIDE { srv_ctx_ = ServerContext(); req_ = RequestType(); response_writer_ = -- GitLab