Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/tera
/ GetWeight
Method
GetWeight
src/load_balancer/cost_function.h:34–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
virtual void Init(const std::shared_ptr<Cluster>& cluster) { cluster_ = cluster; }
33
34
double GetWeight() const { return weight_; }
35
36
void SetWeight(double w) { weight_ = w; }
37
Callers
3
NeedBalance
Method · 0.80
ComputeCost
Method · 0.80
TEST_F
Function · 0.80
Calls
no outgoing calls
Tested by
1
TEST_F
Function · 0.64