telemetry ftw
This commit is contained in:
@@ -8,6 +8,7 @@ use std::str::FromStr as _;
|
||||
|
||||
use crate::StartError;
|
||||
|
||||
#[tracing::instrument]
|
||||
pub async fn init_database_pool(url: &str) -> Result<Pool<Sqlite>, StartError> {
|
||||
Ok(SqlitePoolOptions::new()
|
||||
.max_connections(5)
|
||||
@@ -20,6 +21,7 @@ pub async fn init_database_pool(url: &str) -> Result<Pool<Sqlite>, StartError> {
|
||||
.await?)
|
||||
}
|
||||
|
||||
#[tracing::instrument]
|
||||
pub async fn migrate(url: &str) -> Result<(), StartError> {
|
||||
let pool = SqlitePoolOptions::new()
|
||||
.max_connections(5)
|
||||
|
||||
Reference in New Issue
Block a user