hjwsm1989 commented on code in PR #3359:
URL: https://github.com/apache/brpc/pull/3359#discussion_r3489297200


##########
src/brpc/selective_channel.cpp:
##########
@@ -571,7 +581,8 @@ void SelectiveChannel::CallMethod(
         cntl->SetFailed(EINVAL, "SelectiveChannel=%p is not initialized yet",
                         this);
     }
-    schan::Sender* sndr = new schan::Sender(cntl, request, response, 
user_done);
+    schan::Sender* sndr =

Review Comment:
   @yanglimingcn This has already been addressed in the latest patch. 
`Sender::IssueRPC()` now uses the `Sender`-owned `_lb.get()` and calls 
`SelectChannel()` through the local `balancer` pointer, instead of reading 
`_main_cntl->_lb.get()` directly.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to