Skip to content

Commit 5f3645f

Browse files
committed
chore: update build files
1 parent 2179cd8 commit 5f3645f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cf/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function parseOptions(a, b) {
447447

448448
const ints = ['idle_timeout', 'connect_timeout', 'max_lifetime', 'max_pipeline', 'backoff', 'keep_alive']
449449
const defaults = {
450-
max : 3,
450+
max : globalThis.Cloudflare ? 3 : 10, // https://github.com/porsager/postgres/issues/1023
451451
ssl : false,
452452
idle_timeout : null,
453453
connect_timeout : 30,

cjs/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function parseOptions(a, b) {
446446

447447
const ints = ['idle_timeout', 'connect_timeout', 'max_lifetime', 'max_pipeline', 'backoff', 'keep_alive']
448448
const defaults = {
449-
max : 10,
449+
max : globalThis.Cloudflare ? 3 : 10, // https://github.com/porsager/postgres/issues/1023
450450
ssl : false,
451451
idle_timeout : null,
452452
connect_timeout : 30,

deno/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function parseOptions(a, b) {
447447

448448
const ints = ['idle_timeout', 'connect_timeout', 'max_lifetime', 'max_pipeline', 'backoff', 'keep_alive']
449449
const defaults = {
450-
max : 10,
450+
max : globalThis.Cloudflare ? 3 : 10, // https://github.com/porsager/postgres/issues/1023
451451
ssl : false,
452452
idle_timeout : null,
453453
connect_timeout : 30,

0 commit comments

Comments
 (0)