Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: brianc/node-postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: janm6k/node-postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 14, 2025

  1. Copy the full SHA
    e0cd6ea View commit details
Showing with 2 additions and 0 deletions.
  1. +2 −0 packages/pg-pool/index.js
2 changes: 2 additions & 0 deletions packages/pg-pool/index.js
Original file line number Diff line number Diff line change
@@ -215,6 +215,7 @@ class Pool extends EventEmitter {
}

newClient(pendingItem) {
const started = process.hrtime.bigint();
const client = new this.Client(this.options)
this._clients.push(client)
const idleListener = makeIdleListener(this, client)
@@ -235,6 +236,7 @@ class Pool extends EventEmitter {

this.log('connecting new client')
client.connect((err) => {
this.emit("connect-time", Number(process.hrtime.bigint() - started), err);
if (tid) {
clearTimeout(tid)
}