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

Function GetSubChannelWeight

src/brpc/selective_channel.cpp:68–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68int GetSubChannelWeight(SocketUser* u) {
69 return static_cast<SubChannel*>(u)->chan->Weight();
70}
71
72// Load balance between fake sockets whose SocketUsers are sub channels.
73class ChannelBalancer : public SharedLoadBalancer {

Callers 1

SelectServerMethod · 0.85

Calls 1

WeightMethod · 0.45

Tested by

no test coverage detected