-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: pool fixes and breaking changes
* Fixed leak of `Arc<SharedPool>` in `DecrementSizeGuard::cancel()` * Renamed `PoolOptions::connect_timeout` to `acquire_timeout` for clarity. * Fixed `/* SQLx ping */` showing up in Postgres query logs * Made `.close()` a regular function that returns a `Future` * Deleted deprecated method `PoolConnection::release()` * Document why connection might be dropped if `Pool::acquire()` is cancelled * Added connection metadata to pool lifecycle callbacks * Improved guarantees for `min_connections` * Fixed `num_idle()` to not spin forever at high load * Improved documentation across the `pool` module
- Loading branch information
Showing
15 changed files
with
835 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.