Remove unnecessary error conversion

This commit is contained in:
2026-06-27 17:07:27 -04:00
parent 87aa18b7cc
commit 554ae23175

View File

@@ -26,7 +26,6 @@ pub async fn setup<S: Into<String>>(database_uri: S) -> Result<DbPool, Error> {
let migration_conn = pool
.get()
.await
.map_err(|e| ErrorType::Database(e.to_string()))
.err_context("Failed to get connection to database")?;
tracing::debug!("Running migrations...");