Skip to content

Commit 7aabc0a

Browse files
authored
Fix default pool size value with additional config (#409)
1 parent 7a4d587 commit 7aabc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ff-proxy/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ func newRedisClient(addr string, username string, password string, db int, logge
868868
//
869869
// However, if REDIS_POOL_SIZE_LITERAL is set then we will use it instead.
870870
poolSize := redisPoolSize * runtime.NumCPU()
871-
if redisPoolSizeLiteral >= 0 {
871+
if redisPoolSizeLiteral > 0 {
872872
poolSize = redisPoolSizeLiteral
873873
}
874874

0 commit comments

Comments
 (0)