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

serverglen 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 70d702f1 Optimize reference docs (#2065)
70d702f1 is described below

commit 70d702f1c7c4f663d30cd0ca284bf838a8cf7afb
Author: caidj <[email protected]>
AuthorDate: Thu Dec 29 09:49:19 2022 +0800

    Optimize reference docs (#2065)
    
    * optimize parallel channel request map method
    
    * optimize
    
    * optimze request map function
    
    * optimize doc
---
 docs/cn/combo_channel.md | 3 +++
 docs/en/combo_channel.md | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/docs/cn/combo_channel.md b/docs/cn/combo_channel.md
index 0b4e6b4f..370b5e08 100644
--- a/docs/cn/combo_channel.md
+++ b/docs/cn/combo_channel.md
@@ -52,6 +52,7 @@ public:
     virtual ~CallMapper();
  
     virtual SubCall Map(int channel_index/*starting from 0*/,
+                        int channel_count,
                         const google::protobuf::MethodDescriptor* method,
                         const google::protobuf::Message* request,
                         google::protobuf::Message* response) = 0;
@@ -60,6 +61,8 @@ public:
 
 channel_index:该sub channel在ParallelChannel中的位置,从0开始计数。
 
+channel_count:ParallelChannel中sub channel的数量。
+
 method/request/response:ParallelChannel.CallMethod()的参数。
 
 返回的SubCall被用于访问对应sub channel,SubCall有两个特殊值:
diff --git a/docs/en/combo_channel.md b/docs/en/combo_channel.md
index 0119e238..581f3889 100644
--- a/docs/en/combo_channel.md
+++ b/docs/en/combo_channel.md
@@ -52,6 +52,7 @@ public:
     virtual ~CallMapper();
  
     virtual SubCall Map(int channel_index/*starting from 0*/,
+                        int channel_count,
                         const google::protobuf::MethodDescriptor* method,
                         const google::protobuf::Message* request,
                         google::protobuf::Message* response) = 0;
@@ -60,6 +61,8 @@ public:
 
 `channel_index`: The position of the sub channel inside `ParallelChannel`, 
starting from zero.
 
+`channel_count`: The sub channel count inside `ParallelChannel`.
+
 `method/request/response`: Parameters to `ParallelChannel::CallMethod()`.
 
 The returned `SubCall` configures the calls to the corresponding sub channel 
and has two special values:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to