mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
opt.MinIdleConns = 16
|
||||||
|
|
||||||
client := redis.NewClient(opt)
|
client := redis.NewClient(opt)
|
||||||
if err := client.Ping(ctx).Err(); err != nil {
|
if err := client.Ping(ctx).Err(); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue