| 111 | } |
| 112 | |
| 113 | void SocketMapRemove(const SocketMapKey& key) { |
| 114 | SocketMap* m = get_client_side_socket_map(); |
| 115 | if (m) { |
| 116 | // TODO: We don't have expected_id to pass right now since the callsite |
| 117 | // at NamingServiceThread is hard to be fixed right now. As long as |
| 118 | // FLAGS_health_check_interval is limited to positive, SocketMapInsert |
| 119 | // never replaces the sockets, skipping comparison is still right. |
| 120 | m->Remove(key, INVALID_SOCKET_ID); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | void SocketMapList(std::vector<SocketId>* ids) { |
| 125 | SocketMap* m = get_client_side_socket_map(); |