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

Method New

src/brpc/policy/randomized_load_balancer.cpp:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135RandomizedLoadBalancer* RandomizedLoadBalancer::New(
136 const butil::StringPiece& params) const {
137 RandomizedLoadBalancer* lb = new (std::nothrow) RandomizedLoadBalancer;
138 if (lb && !lb->SetParameters(params)) {
139 delete lb;
140 lb = NULL;
141 }
142 return lb;
143}
144
145void RandomizedLoadBalancer::Destroy() {
146 delete this;

Callers

nothing calls this directly

Calls 1

SetParametersMethod · 0.45

Tested by

no test coverage detected