Skip to content

Commit

Permalink
fix code smell.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeyes committed Oct 18, 2023
1 parent fa7894b commit a726fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PSS_ASIO/Message/ModuleLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ void CWorkThreadLogic::do_work_thread_module_logic(shared_ptr<ISession> session,
}
}

void CWorkThreadLogic::send_io_buffer(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet) const
void CWorkThreadLogic::send_io_buffer_to_session(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet) const
{
if (io_send_time_check_ > 0)
{
Expand Down Expand Up @@ -532,11 +532,11 @@ void CWorkThreadLogic::do_io_message_delivery(uint32 connect_id, std::shared_ptr
return;
}

send_io_buffer(connect_id, session, format_packet);
send_io_buffer_to_session(connect_id, session, format_packet);
}
else
{
send_io_buffer(connect_id, session, send_packet);
send_io_buffer_to_session(connect_id, session, send_packet);
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion PSS_ASIO/Message/ModuleLogic.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class CWorkThreadLogic
int do_io_bridge_data(uint32 connect_id, uint32 io_bridge_connect_id_, CSessionBuffer& session_recv_buffer, std::size_t length, shared_ptr<ISession> session);

private:
void send_io_buffer(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet) const;
void send_io_buffer_to_session(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet) const;
void do_work_thread_timeout(uint16 work_thread_id, uint16 last_dispose_command_id, int work_thread_timeout);

using hashmappluginworkthread = unordered_map<uint32, shared_ptr<CModuleLogic>>;
Expand Down

0 comments on commit a726fec

Please sign in to comment.