Skip to content

Commit

Permalink
Fix thread safety of functions by adding Send and Sync traits
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Mar 27, 2024
1 parent 6805cdd commit 6e29374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maple/gtfs_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub async fn gtfs_process_feed(
chateau_id: &str,
attempt_id: &str,
this_download_data: &DownloadedFeedsInformation,
) -> Result<(), Box<dyn Error>> {
) -> Result<(), Box<dyn Error + Send + Sync>> {
let conn_pool = arc_conn_pool.as_ref();
let conn_pre = conn_pool.get().await;
let conn = &mut conn_pre?;
Expand Down

0 comments on commit 6e29374

Please sign in to comment.