MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / DeregisterFromConsul

Method DeregisterFromConsul

src/plugin/net/src/AFCNetServiceManagerModule.cpp:268–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268int 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
282bool AFCNetServiceManagerModule::CreateClientService(const AFBusAddr& bus_addr, const std::string& ip, uint16_t port)
283{

Callers

nothing calls this directly

Calls 5

AFBusAddrFunction · 0.85
DeregisterServiceMethod · 0.80
GetAppWholeNameMethod · 0.80
ThenMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected