This is an automated email from the ASF dual-hosted git repository.

jiashunzhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new db9e92f  SampleRequest to SampledRequest
     new cb22927  Merge pull request #1420 from guodongxiaren/fix_SampleRequest
db9e92f is described below

commit db9e92f27482b0b3a16051091c143a977d2f4434
Author: guodongxiaren <879231...@qq.com>
AuthorDate: Tue Jun 1 20:52:05 2021 +0800

    SampleRequest to SampledRequest
---
 docs/cn/rpc_replay.md | 2 +-
 src/brpc/rpc_dump.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/cn/rpc_replay.md b/docs/cn/rpc_replay.md
index 59eee29..7a8cebc 100644
--- a/docs/cn/rpc_replay.md
+++ b/docs/cn/rpc_replay.md
@@ -49,7 +49,7 @@ 
brpc提供了[SampleIterator](https://github.com/brpc/brpc/blob/master/src/brpc/
 #include <brpc/rpc_dump.h>
 ...
 brpc::SampleIterator it("./rpc_data/rpc_dump/echo_server");         
-for (SampleRequest* req = it->Next(); req != NULL; req = it->Next()) {
+for (brpc::SampledRequest* req = it->Next(); req != NULL; req = it->Next()) {
     ...                    
     // req->meta的类型是brpc::RpcDumpMeta,定义在src/brpc/rpc_dump.proto
     // req->request的类型是butil::IOBuf,对应格式说明中的"serialized request"
diff --git a/src/brpc/rpc_dump.h b/src/brpc/rpc_dump.h
index 1f572fe..09bb6f1 100644
--- a/src/brpc/rpc_dump.h
+++ b/src/brpc/rpc_dump.h
@@ -75,7 +75,7 @@ inline SampledRequest* AskToBeSampled() {
 // Read samples from dumped files in a directory.
 // Example:
 //   SampleIterator it("./rpc_dump_echo_server");
-//   for (SampleRequest* req = it->Next(); req != NULL; req = it->Next()) {
+//   for (SampledRequest* req = it->Next(); req != NULL; req = it->Next()) {
 //     ...
 //   }
 class SampleIterator {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to