MCPcopy Create free account
hub / github.com/Tencent/phxqueue / AddrToString

Function AddrToString

phxqueue/comm/utils/addr_util.cpp:55–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55string AddrToString(const proto::Addr &addr) {
56 return addr.ip() + ":" + to_string(addr.port()) + ":" + to_string(addr.paxos_port());
57}
58
59string AddrScaleToString(const proto::AddrScale &addr_scale) {
60 return AddrToString(addr_scale.addr()) + "@" + to_string(addr_scale.scale());

Callers 3

GetAddrScaleMethod · 0.85
AddrScaleToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected