Skip to content

Commit

Permalink
user-ingest: Add debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Oct 15, 2024
1 parent 43930bf commit babe6c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions user-ingest/src/rmq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ pub async fn add_to_queue(routing_key: &str, body: &str) -> Result<(), ProcessEr
BasicProperties::default(),
)
.await
.map(|_| ())
.map(|s| {
info!("Sent message to queue: {:?}", s);
})
.map_err(ProcessError::RmqError)
}

Expand Down Expand Up @@ -59,7 +61,7 @@ async fn get_rmq_channel() -> Result<&'static Channel, ProcessError> {
),
ConnectionProperties::default(),
)
.await
.await
})
.await
.map_err(ProcessError::RmqError)?;
Expand All @@ -80,7 +82,7 @@ async fn get_rmq_public_channel() -> Result<&'static Channel, ProcessError> {
),
ConnectionProperties::default(),
)
.await
.await
})
.await
.map_err(ProcessError::RmqError)?;
Expand Down

0 comments on commit babe6c6

Please sign in to comment.