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