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; }