Skip to content

Commit

Permalink
Set default MaxRetry value in configDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
itpey committed Nov 14, 2024
1 parent cb10688 commit f9f9ee6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions minio/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,9 @@ func configDefault(config ...Config) Config {
cfg.Bucket = ConfigDefault.Bucket
}

if cfg.MaxRetry < 1 {
cfg.MaxRetry = ConfigDefault.MaxRetry
}

return cfg
}

0 comments on commit f9f9ee6

Please sign in to comment.