|
@@ -47,6 +47,8 @@ impl ResourceManager for SqliteConnectionManager {
|
|
"#,
|
|
"#,
|
|
)?;
|
|
)?;
|
|
|
|
|
|
|
|
+ conn.busy_timeout(Duration::from_secs(10))?;
|
|
|
|
+
|
|
Ok(conn)
|
|
Ok(conn)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -81,7 +83,7 @@ pub fn create_sqlite_pool(
|
|
)
|
|
)
|
|
};
|
|
};
|
|
|
|
|
|
- Pool::new(config, max_size, Duration::from_secs(5))
|
|
|
|
|
|
+ Pool::new(config, max_size, Duration::from_secs(10))
|
|
}
|
|
}
|
|
|
|
|
|
/// Migrates the migration generated by `build.rs`
|
|
/// Migrates the migration generated by `build.rs`
|