Skip to content

Commit

Permalink
ROX-21319: Increase DB connection retries (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaravel authored Dec 13, 2023
1 parent d9cf8cf commit 19ee51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func Boot(config *Config, slimMode bool) {
go func() {
defer wg.Add(-1)
var err error
db, err = database.OpenWithRetries(config.Database, true, 18, 10*time.Second)
db, err = database.OpenWithRetries(config.Database, true, 30, 10*time.Second)
if err != nil {
log.WithError(err).Fatal("Failed to open database despite multiple retries...")
}
Expand Down

0 comments on commit 19ee51d

Please sign in to comment.