induzo/gostorage

View on GitHub
redis/connpool.go

Summary

Maintainability
A
40 mins
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status