zyearn commented on pull request #1196:
URL: https://github.com/apache/incubator-brpc/pull/1196#issuecomment-670299745


   
另外一个思路是在selective_chan中调用AddServer的时候,把ServerId.tag也考虑进去,不同的channel有不同的tag,并在多机环境下用同一个server_addr/ns_url初始化的channel有相同的tag,一种实现是直接把server_addr(对应单机)or
 
ns_url(对应集群)的字符串作为tag,这样的话可能需要增加一个ChannelBase的接口F来返回这个值。selective_chan本身可以加入另外一个selective_chan,所以组合channel的接口F实现也是调所有sub_chan的F来拼成结果。


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



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

Reply via email to