From ec0f2075d4941134f7a01cb08a775a00f61c3a70 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:18:33 +0800 Subject: [PATCH] feat: RedisServer default 2 io_threads --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 2766b13..d28028f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -19,7 +19,7 @@ initLog() class RedisServer { public: - RedisServer(asio::ip::tcp::endpoint ep = asio::ip::tcp::endpoint(asio::ip::tcp::v4(), 6379), int io_thread_num = 1) + RedisServer(asio::ip::tcp::endpoint ep = asio::ip::tcp::endpoint(asio::ip::tcp::v4(), 6379), int io_thread_num = 2) : _io_context(), _io_context_guard(asio::make_work_guard(_io_context)), _io_threads(),