| 266 | } |
| 267 | |
| 268 | int AFCNetServiceManagerModule::DeregisterFromConsul(const int bus_id) |
| 269 | { |
| 270 | auto ret = m_pConsulModule->DeregisterService(m_pBusModule->GetAppWholeName(bus_id)); |
| 271 | ret.Then([=](const std::pair<bool, std::string>& response) { |
| 272 | if (!response.first) |
| 273 | { |
| 274 | ARK_LOG_ERROR( |
| 275 | "DeregisterFromConsul failed, busid={}, error={}", AFBusAddr(bus_id).ToString(), response.second); |
| 276 | } |
| 277 | }); |
| 278 | |
| 279 | return 0; |
| 280 | } |
| 281 | |
| 282 | bool AFCNetServiceManagerModule::CreateClientService(const AFBusAddr& bus_addr, const std::string& ip, uint16_t port) |
| 283 | { |
nothing calls this directly
no test coverage detected