Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ AddServer
Method
AddServer
src/brpc/server_id.cpp:34–36 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
}
33
34
bool ServerId2SocketIdMapper::AddServer(const ServerId& server) {
35
return (++_nref_map[server.id] == 1);
36
}
37
38
bool ServerId2SocketIdMapper::RemoveServer(const ServerId& server) {
39
int* nref = _nref_map.seek(server.id);
Callers
1
TEST_F
Function · 0.45
Calls
no outgoing calls
Tested by
1
TEST_F
Function · 0.36