| 218 | clients.emplace(n, std::move(addrs)); |
| 219 | } |
| 220 | void unregister_client(std::string_view name, const entity_addrvec_t& addrs) |
| 221 | { |
| 222 | std::lock_guard l(lock); |
| 223 | auto itp = clients.equal_range(std::string(name)); |
| 224 | for (auto it = itp.first; it != itp.second; ++it) { |
| 225 | if (it->second == addrs) { |
| 226 | clients.erase(it); |
| 227 | return; |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | auto get_clients() const |
| 233 | { |
nothing calls this directly
no test coverage detected