jamesge commented on a change in pull request #592: lb configurable && 
consistency hash lb refactor
URL: https://github.com/apache/incubator-brpc/pull/592#discussion_r273800238
 
 

 ##########
 File path: src/brpc/load_balancer.h
 ##########
 @@ -179,6 +184,16 @@ inline Extension<const LoadBalancer>* 
LoadBalancerExtension() {
     return Extension<const LoadBalancer>::instance();
 }
 
+inline bool SplitLoadBalancerParameters(const butil::StringPiece& params,
 
 Review comment:
   
这个封装的意义有限,还容易让用户误以为“直接”支持StringPiece,我建议直接把调用处改成这个函数的内部实现。如果时间ok的话,可以考虑在string_piece.h中增加一个直接支持StringPiece的版本,然后调用它,这个函数应该也有挺强的复用性的。

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to