File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,13 +239,13 @@ impl<DB: Database> PoolInner<DB> {
239
239
240
240
/// Try to maintain `min_connections`, returning any errors (including `PoolTimedOut`).
241
241
pub async fn try_min_connections ( self : & Arc < Self > , deadline : Instant ) -> Result < ( ) , Error > {
242
- crate :: rt:: timeout_at ( deadline, async {
242
+ rt:: timeout_at ( deadline, async {
243
243
while self . size ( ) < self . options . min_connections {
244
244
// Don't wait for a connect permit.
245
245
//
246
246
// If no extra permits are available then we shouldn't be trying to spin up
247
247
// connections anyway.
248
- let Some ( ( id, permit) ) = self . counter . acquire_permit ( self ) . now_or_never ( ) else {
248
+ let Some ( ( id, permit) ) = self . counter . try_acquire_permit ( self ) else {
249
249
return Ok ( ( ) ) ;
250
250
} ;
251
251
You can’t perform that action at this time.
0 commit comments