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

Method ServerId2SocketIdMapper

src/brpc/server_id.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace brpc {
23
24ServerId2SocketIdMapper::ServerId2SocketIdMapper() {
25 _tmp.reserve(128);
26 if (_nref_map.init(128) != 0) {
27 LOG(WARNING) << "Fail to init _nref_map";
28 }
29}
30
31ServerId2SocketIdMapper::~ServerId2SocketIdMapper() {
32}

Callers

nothing calls this directly

Calls 2

reserveMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected