mirror of
https://github.com/perstarkse/minne.git
synced 2026-12-01 01:33:57 +01:00
wip: query
This commit is contained in:
1 parent
380e2e1d01
commit
2e064c7148
4 files changed
+72
-18
No files matched your search
@@ -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))
|
||||
})?;
|
||||
|
||||
Reference in new issue
Block a user