| 46 | } |
| 47 | |
| 48 | string EncodedAddrToIPString(const uint64_t encoded_addr) { |
| 49 | proto::Addr addr; |
| 50 | DecodeAddr(encoded_addr, addr); |
| 51 | |
| 52 | return addr.ip(); |
| 53 | } |
| 54 | |
| 55 | string AddrToString(const proto::Addr &addr) { |
| 56 | return addr.ip() + ":" + to_string(addr.port()) + ":" + to_string(addr.paxos_port()); |
no test coverage detected