Skip to content

Commit

Permalink
fix: Allow applications to configure acquireTimeoutMillis (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobdenOs committed Sep 2, 2024
1 parent 147b88e commit abac818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hana/lib/HANAService.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HANAService extends SQLService {
throw new Error(`Database kind "${kind}" configured, but no HDI container or Service Manager instance bound to application.`)
}
const isMultitenant = !!service.options.credentials.sm_url || ('multiTenant' in this.options ? this.options.multiTenant : cds.env.requires.multitenancy)
const acquireTimeoutMillis = this.options.pool?.acquireTimeoutMillis || cds.env.profiles.includes('production') ? 1000 : 10000
const acquireTimeoutMillis = this.options.pool?.acquireTimeoutMillis || (cds.env.profiles.includes('production') ? 1000 : 10000)
return {
options: {
min: 0,
Expand Down

0 comments on commit abac818

Please sign in to comment.