mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 11:47:42 +00:00
change pool size for redis
This commit is contained in:
parent
e5bf631a0b
commit
310567fde2
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +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
|
opt.PoolSize = 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