Skip to content

Commit

Permalink
MTG-1110 Add request timeout for PG DB query
Browse files Browse the repository at this point in the history
- simpl optimisations
  • Loading branch information
andrii-kl committed Jan 17, 2025
1 parent 80741a6 commit ccd9e0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nft_ingester/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ pub async fn init_index_storage_with_migration(
pg_max_query_statement_timeout_secs,
)
.await
.map_err(|e| e.to_string())
.map_err(IngesterError::SqlxError)?;
.map_err(|e| IngesterError::SqlxError(e.to_string()))?;

pg_client.run_migration(pg_migrations_path).await.map_err(IngesterError::SqlxError)?;

Expand Down

0 comments on commit ccd9e0e

Please sign in to comment.