Skip to content

Commit

Permalink
Merge pull request #2095 from anoopsundial/postgres_aggressive_init_c…
Browse files Browse the repository at this point in the history
…tx_timeout

Increase the aggressive postgres instantiation timeout of 5 seconds to 30 seconds #2094
  • Loading branch information
vroldanbet authored Oct 22, 2024
2 parents 3727476 + ef38bec commit fcd2670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datastore/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func newPostgresDatastore(
Msg("postgres configured to use intermediate migration phase")
}

initializationContext, cancelInit := context.WithTimeout(context.Background(), 5*time.Second)
initializationContext, cancelInit := context.WithTimeout(context.Background(), 30*time.Second)
defer cancelInit()

readPool, err := pgxpool.NewWithConfig(initializationContext, readPoolConfig)
Expand Down

0 comments on commit fcd2670

Please sign in to comment.