Skip to content

Commit c2c0bf1

Browse files
authored
Fix type of timeout (porsager#118)
1 parent 0e91989 commit c2c0bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ const [custom] = sql`
487487

488488
## Teardown / Cleanup
489489

490-
To ensure proper teardown and cleanup on server restarts use `sql.end({ timeout: null })` before `process.exit()`.
490+
To ensure proper teardown and cleanup on server restarts use `sql.end({ timeout: 0 })` before `process.exit()`.
491491

492492
Calling `sql.end()` will reject new queries and return a Promise which resolves when all queries are finished and the underlying connections are closed. If a timeout is provided any pending queries will be rejected once the timeout is reached and the connections will be destroyed.
493493

0 commit comments

Comments
 (0)