We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8566197 commit 99a5ed7Copy full SHA for 99a5ed7
sqlx-core/src/pool/inner.rs
@@ -371,13 +371,13 @@ impl<DB: Database> PoolInner<DB> {
371
// If no extra permits are available then we shouldn't be trying to spin up
372
// connections anyway.
373
let Some(permit) = self.semaphore.try_acquire(1) else {
374
- return Ok(());
375
- };
+ return Ok(());
+ };
376
377
// We must always obey `max_connections`.
378
let Some(guard) = self.try_increment_size(permit).ok() else {
379
380
381
382
// We skip `after_release` since the connection was never provided to user code
383
// besides `after_connect`, if they set it.
0 commit comments