MCPcopy Create free account
hub / github.com/apache/brpc / SelectChannel

Method SelectChannel

src/brpc/selective_channel.cpp:252–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252inline int ChannelBalancer::SelectChannel(const LoadBalancer::SelectIn& in,
253 SelectOut* out) {
254 LoadBalancer::SelectOut sel_out(&out->fake_sock);
255 const int rc = SelectServer(in, &sel_out);
256 if (rc != 0) {
257 return rc;
258 }
259 out->need_feedback = sel_out.need_feedback;
260 return 0;
261}
262
263int ChannelBalancer::CheckHealth() {
264 BAIDU_SCOPED_LOCK(_mutex);

Callers 1

IssueRPCMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected