mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Update reference in docs from done to release (#3211)
This commit is contained in:
parent
0cebc513e3
commit
81e2ff0524
@ -94,7 +94,7 @@ export const getClient = () => {
|
||||
}
|
||||
```
|
||||
|
||||
Okay. Great - the simplest thing that could possibly work. It seems like one of our routes that checks out a client to run a transaction is forgetting to call `done` in some situation! Oh no! We are leaking a client & have hundreds of these routes to go audit. Good thing we have all our client access going through this single file. Lets add some deeper diagnostic information here to help us track down where the client leak is happening.
|
||||
Okay. Great - the simplest thing that could possibly work. It seems like one of our routes that checks out a client to run a transaction is forgetting to call `release` in some situation! Oh no! We are leaking a client & have hundreds of these routes to go audit. Good thing we have all our client access going through this single file. Lets add some deeper diagnostic information here to help us track down where the client leak is happening.
|
||||
|
||||
```js
|
||||
export const query = async (text, params) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user