From a726fecf51f808e494cda5194994b279566ac883 Mon Sep 17 00:00:00 2001 From: freeeyes Date: Wed, 18 Oct 2023 11:42:53 +0800 Subject: [PATCH] fix code smell. --- PSS_ASIO/Message/ModuleLogic.cpp | 6 +++--- PSS_ASIO/Message/ModuleLogic.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PSS_ASIO/Message/ModuleLogic.cpp b/PSS_ASIO/Message/ModuleLogic.cpp index 103f867..5122581 100644 --- a/PSS_ASIO/Message/ModuleLogic.cpp +++ b/PSS_ASIO/Message/ModuleLogic.cpp @@ -501,7 +501,7 @@ void CWorkThreadLogic::do_work_thread_module_logic(shared_ptr session, } } -void CWorkThreadLogic::send_io_buffer(uint32 connect_id, std::shared_ptr session, std::shared_ptr format_packet) const +void CWorkThreadLogic::send_io_buffer_to_session(uint32 connect_id, std::shared_ptr session, std::shared_ptr format_packet) const { if (io_send_time_check_ > 0) { @@ -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 diff --git a/PSS_ASIO/Message/ModuleLogic.h b/PSS_ASIO/Message/ModuleLogic.h index 4527e41..4de6d8f 100644 --- a/PSS_ASIO/Message/ModuleLogic.h +++ b/PSS_ASIO/Message/ModuleLogic.h @@ -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 session); private: - void send_io_buffer(uint32 connect_id, std::shared_ptr session, std::shared_ptr format_packet) const; + void send_io_buffer_to_session(uint32 connect_id, std::shared_ptr session, std::shared_ptr 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>;