Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
68
int GetSubChannelWeight(SocketUser* u) {
69
return static_cast<SubChannel*>(u)->chan->Weight();
70
}
71
72
// Load balance between fake sockets whose SocketUsers are sub channels.
73
class ChannelBalancer : public SharedLoadBalancer {
Callers
1
SelectServer
Method · 0.85
Calls
1
Weight
Method · 0.45
Tested by
no test coverage detected