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

Method HasAddr

test/brpc_naming_service_unittest.cpp:642–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640 int CancelCount() const { return _cancel_count; }
641
642 bool HasAddr(const std::string& addr) const {
643 return _addrs.find(addr) != _addrs.end();
644 }
645 int AddrCount() const { return _addrs.size(); }
646
647private:

Callers 1

TESTFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected