Remove unnecessary error conversion
This commit is contained in:
@@ -26,7 +26,6 @@ pub async fn setup<S: Into<String>>(database_uri: S) -> Result<DbPool, Error> {
|
|||||||
let migration_conn = pool
|
let migration_conn = pool
|
||||||
.get()
|
.get()
|
||||||
.await
|
.await
|
||||||
.map_err(|e| ErrorType::Database(e.to_string()))
|
|
||||||
.err_context("Failed to get connection to database")?;
|
.err_context("Failed to get connection to database")?;
|
||||||
|
|
||||||
tracing::debug!("Running migrations...");
|
tracing::debug!("Running migrations...");
|
||||||
|
|||||||
Reference in New Issue
Block a user