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

Method BatchAdd

src/brpc/policy/dynpart_load_balancer.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60size_t DynPartLoadBalancer::BatchAdd(
61 Servers& bg, const std::vector<ServerId>& servers) {
62 size_t count = 0;
63 for (size_t i = 0; i < servers.size(); ++i) {
64 count += !!Add(bg, servers[i]);
65 }
66 return count;
67}
68
69size_t DynPartLoadBalancer::BatchRemove(
70 Servers& bg, const std::vector<ServerId>& servers) {

Callers

nothing calls this directly

Calls 2

AddClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected