Skip to content

Commit

Permalink
rest redis maxRetry params
Browse files Browse the repository at this point in the history
  • Loading branch information
nj-leegern committed Sep 28, 2020
1 parent 083b99a commit e5bdf53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/RedisAgent.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func createAgent(agentType string, ops ...Option) (interface{}, error) {
MinIdleConns: int(defaultOps.minIdleConns),
DialTimeout: defaultOps.dialTimeout,
IdleTimeout: defaultOps.idleTimeout,
MaxRetries: 2,
})
if cc == nil {
return nil, ErrRedisAgent
Expand Down

0 comments on commit e5bdf53

Please sign in to comment.