Skip to content

Add more pool settings #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fmt
  • Loading branch information
levkk committed Apr 26, 2023
commit 26b15b8e01e3720ee283cdec48d6c4a895d46e0e
8 changes: 5 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,13 @@ impl User {
match self.min_pool_size {
Some(min_pool_size) => {
if min_pool_size > self.pool_size {
error!("min_pool_size of {} cannot be larger than pool_size of {}", min_pool_size, self.pool_size);
error!(
"min_pool_size of {} cannot be larger than pool_size of {}",
min_pool_size, self.pool_size
);
return Err(Error::BadConfig);
}
},
}

None => (),
};
Expand Down Expand Up @@ -550,7 +553,6 @@ impl Pool {
user.validate()?;
}


Ok(())
}
}
Expand Down