mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +00:00
keep a number of idle connections around
This commit is contained in:
parent
b98f8345a5
commit
47ee2a6e52
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ func NewRedisClient(ctx context.Context) (*redis.Client, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
opt.MinIdleConns = 16
|
||||
|
||||
client := redis.NewClient(opt)
|
||||
if err := client.Ping(ctx).Err(); err != nil {
|
||||
|
|
Loading…
Reference in a new issue