mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 02:05:10 +00:00
parent
9393195827
commit
2207fed0f5
|
@ -78,8 +78,7 @@ async fn main() -> Result<(), LemmyError> {
|
|||
let pool = Pool::builder()
|
||||
.max_size(settings.database.pool_size)
|
||||
.min_idle(Some(1))
|
||||
.build(manager)
|
||||
.unwrap_or_else(|_| panic!("Error connecting to {}", db_url));
|
||||
.build(manager)?;
|
||||
|
||||
// Run the migrations from code
|
||||
let settings_cloned = settings.to_owned();
|
||||
|
|
Loading…
Reference in a new issue