This commit is contained in:
azw 2023-05-07 01:26:46 +00:00
parent f71a4ef0fd
commit 8569af06ea
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ enum InnerMesssage_e
enum IoContext_e
{
IC_Master,
IC_Upstream,
IC_UpStream,
IC_Max
};

View File

@ -34,7 +34,7 @@ void UpStream::Init(int instance_id, const std::string& remote_ip, int remote_po
last_pong_tick = a8::XGetTickCount();
recv_buff_ = (char*) malloc(PACK_MAX * 2);
#ifdef USE_ASIO
auto io_context = IoMgr::Instance()->GetIoContext(IC_Master);
auto io_context = IoMgr::Instance()->GetIoContext(IC_UpStream);
if (!io_context) {
abort();
}