fix bug in init_min_connections
@@ -183,7 +183,7 @@ impl<DB: Database> SharedPool<DB> {
let deadline = Instant::now() + self.options.connect_timeout;
// this guard will prevent us from exceeding `max_size`
- while let Some(guard) = self.try_increment_size() {
+ if let Some(guard) = self.try_increment_size() {
// [connect] will raise an error when past deadline
// [connect] returns None if its okay to retry
if let Some(conn) = self.connect(deadline, guard).await? {
