From c3429ad2482280083c8399412e6b2f3f6144d3b7 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 04 八月 2023 10:48:45 +0800
Subject: [PATCH] redis连接池归还

---
 ths/ths_util.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ths/ths_util.py b/ths/ths_util.py
index 7013f12..033cf3d 100644
--- a/ths/ths_util.py
+++ b/ths/ths_util.py
@@ -186,7 +186,7 @@
             RedisUtils.incrby(redis, key, 1, auto_free=False)
             RedisUtils.expire(redis, key, tool.get_expire(), auto_free=False)
     finally:
-        redis.connection_pool.disconnect()
+        RedisUtils.realse(redis)
 
 
 # 鍚岃姳椤烘槸鍚﹀崱姝�

--
Gitblit v1.8.0