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

Method PostInit

src/plugin/net/src/AFCNetServiceManagerModule.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool AFCNetServiceManagerModule::PostInit()
40{
41 // set reg center info
42 auto reg_center = m_pBusModule->GetRegCenter();
43 m_pConsulModule->SetRegisterCenter(reg_center.ip, reg_center.port);
44
45 // start health check timer
46 m_pTimerModule->AddForeverTimer(0, std::chrono::seconds(20), this, &AFCNetServiceManagerModule::HealthCheck);
47
48 return true;
49}
50
51void AFCNetServiceManagerModule::HealthCheck(uint64_t timer_id, const AFGUID& entity_id)
52{

Callers

nothing calls this directly

Calls 2

SetRegisterCenterMethod · 0.80
AddForeverTimerMethod · 0.45

Tested by

no test coverage detected