Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
647
private:
Callers
1
TEST
Function · 0.80
Calls
2
find
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected