Skip to content

Commit 6e63f0e

Browse files
pataiadambrianc
authored andcommitted
Update readme (brianc#1210)
* Fix sample code in README * Fix typo
1 parent f6c40b9 commit 6e63f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ pool.connect(function(err, client, done) {
8383
return console.error('error fetching client from pool', err);
8484
}
8585
client.query('SELECT $1::int AS number', ['1'], function(err, result) {
86-
//call `done()` to release the client back to the pool
87-
done();
86+
//call `done(err)` to release the client back to the pool (or destroy it if there is an error)
87+
done(err);
8888

8989
if(err) {
9090
return console.error('error running query', err);

0 commit comments

Comments
 (0)