From 6a235beaaa7827d320312608261db5c91b94d0ac Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 10 May 2024 17:08:08 -0400 Subject: [PATCH] Remove &mut self constraint on SQS Consumer methods --- omniqueue/src/backends/sqs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omniqueue/src/backends/sqs.rs b/omniqueue/src/backends/sqs.rs index e55dc55..ced81ff 100644 --- a/omniqueue/src/backends/sqs.rs +++ b/omniqueue/src/backends/sqs.rs @@ -291,7 +291,7 @@ impl SqsConsumer { } } - pub async fn receive(&mut self) -> Result { + pub async fn receive(&self) -> Result { let out = self .client .receive_message() @@ -309,7 +309,7 @@ impl SqsConsumer { } pub async fn receive_all( - &mut self, + &self, max_messages: usize, deadline: Duration, ) -> Result> {