From cab4bcdbef9ff0e1494ec580a19b13740faf6c56 Mon Sep 17 00:00:00 2001 From: "jay1991115@126.com" Date: Fri, 14 Dec 2018 18:33:13 +0800 Subject: [PATCH] clean ThreadLocal --- src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java b/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java index 582be54..e1bc05a 100644 --- a/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java +++ b/src/main/java/com/geekq/miaosha/redis/RedisPoolFactory.java @@ -20,7 +20,7 @@ public class RedisPoolFactory { poolConfig.setMaxTotal(redisConfig.getPoolMaxTotal()); poolConfig.setMaxWaitMillis(redisConfig.getPoolMaxWait() * 1000); JedisPool jp = new JedisPool(poolConfig, redisConfig.getHost(), redisConfig.getPort(), - redisConfig.getTimeout()*1000, redisConfig.getPassword(), 8); + redisConfig.getTimeout()*1000, redisConfig.getPassword(), 0); return jp; }