yanglimingcn commented on code in PR #2923:
URL: https://github.com/apache/brpc/pull/2923#discussion_r2009715619


##########
src/brpc/server.h:
##########
@@ -601,6 +601,16 @@ class Server {
     int MaxConcurrencyOf(google::protobuf::Service* service,
                          const butil::StringPiece& method_name) const;
 
+    // Reset max_concurrency associated with a method.
+    int ResetMaxConcurrencyOf(const butil::StringPiece& full_method_name,

Review Comment:
   
MaxConcurrencyOf设置的是MethodProperty的max_concurrency这个字段,它只在Server启动时候给ConcurrencyLimiter赋值,真正的ConcurrencyLimiter是MethodProperty里面的status字段,它是MethodStatus里面有个std::unique_ptr<ConcurrencyLimiter>
 _cl成员,它会控制并发度。
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to