induzo/gostorage

View on GitHub

Showing 1 of 3 total issues

Function NewConnPool has 6 return statements (exceeds 4 allowed).
Open

func NewConnPool(redisConf Config) (*redis.Pool, error) {
    redPool := &redis.Pool{
        MaxIdle:     MaxIdleConn,
        MaxActive:   redisConf.MaxActiveConnections,
        IdleTimeout: IdleTimeout,
Severity: Major
Found in redis/connpool.go - About 40 mins to fix
    Severity
    Category
    Status
    Source
    Language