diff --git a/omniqueue/src/backends/rabbitmq.rs b/omniqueue/src/backends/rabbitmq.rs index e8d959a..a9b39c2 100644 --- a/omniqueue/src/backends/rabbitmq.rs +++ b/omniqueue/src/backends/rabbitmq.rs @@ -120,7 +120,7 @@ impl QueueBackend for RabbitMqBackend { .await .map_err(QueueError::generic)?; - Ok(producer(&conn, cfg.clone(), custom_encoders).await?) + producer(&conn, cfg.clone(), custom_encoders).await } async fn consuming_half( @@ -131,7 +131,7 @@ impl QueueBackend for RabbitMqBackend { .await .map_err(QueueError::generic)?; - Ok(consumer(&conn, cfg.clone(), custom_decoders).await?) + consumer(&conn, cfg.clone(), custom_decoders).await } } diff --git a/omniqueue/src/backends/sqs.rs b/omniqueue/src/backends/sqs.rs index eee023e..0f22155 100644 --- a/omniqueue/src/backends/sqs.rs +++ b/omniqueue/src/backends/sqs.rs @@ -292,11 +292,10 @@ impl QueueConsumer for SqsQueueConsumer { .await .map_err(QueueError::generic)?; - Ok(out - .messages() + out.messages() .unwrap_or_default() .iter() .map(|message| -> Result { Ok(self.wrap_message(message)) }) - .collect::, _>>()?) + .collect::, _>>() } }