From 7e3ecf0f3f707cd8dc24ab28467d5a64e9e170d2 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 22 Sep 2025 13:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=9E=E6=8E=A5=E6=B1=A0?= =?UTF-8?q?=E6=95=B0=E9=87=8F=EF=BC=8C=E6=9C=80=E5=A4=A7=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA30=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/connection.py b/db/connection.py index 413031d..17964ff 100644 --- a/db/connection.py +++ b/db/connection.py @@ -62,7 +62,7 @@ class DBConnectionManager: # 准备连接池配置 pool_config = { 'pool_name': 'wechat_robot_pool', - 'pool_size': 10, # 连接池大小 + 'pool_size': 30, # 连接池大小 'host': config.get('host', 'localhost'), 'port': config.get('port', 3306), 'user': config.get('user', 'root'), @@ -97,7 +97,7 @@ class DBConnectionManager: password=config.get('password', None), db=config.get('db', 0), decode_responses=config.get('decode_responses', True), - max_connections=config.get('max_connections', 10) + max_connections=config.get('max_connections', 30) ) self.LOG.info("Redis连接池初始化成功") except Exception as e: