jamesge commented on a change in pull request #694: Health check by rpc call
URL: https://github.com/apache/incubator-brpc/pull/694#discussion_r268953856
 
 

 ##########
 File path: src/brpc/policy/randomized_load_balancer.cpp
 ##########
 @@ -118,7 +118,8 @@ int RandomizedLoadBalancer::SelectServer(const SelectIn& 
in, SelectOut* out) {
         if (((i + 1) == n  // always take last chance
              || !ExcludedServers::IsExcluded(in.excluded, id))
             && Socket::Address(id, out->ptr) == 0
-            && !(*out->ptr)->IsLogOff()) {
+            && !(*out->ptr)->IsLogOff()
 
 Review comment:
   把IsLogOff全部更名为IsAvailable(),并在其中包含之前IsLogOff和IsAppHealthCheck的逻辑。

----------------------------------------------------------------
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