wip: query

This commit is contained in:
Per Stark committed 2024-11-23 22:27:51 +01:00
1 parent 380e2e1d01
commit 2e064c7148
4 files changed
+72 -18

No files matched your search

+2 -2
View File
@@ -42,10 +42,10 @@ impl RabbitMQProducer {
/// * `Result<Confirmation, RabbitMQError>` - Confirmation of sent message or error
pub async fn publish(
&self,
ingress_object: &IngressObject,
ingress_object: IngressObject,
) -> Result<Confirmation, RabbitMQError> {
// Serialize IngressObject to JSON
let payload = serde_json::to_vec(ingress_object).map_err(|e| {
let payload = serde_json::to_vec(&ingress_object).map_err(|e| {
error!("Serialization Error: {}", e);
RabbitMQError::PublishError(format!("Serialization Error: {}", e))
})?;