Skip to content

Commit

Permalink
Remove &mut self constraint on SQS Consumer methods
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-gabriel committed May 10, 2024
1 parent c529f1a commit 6a235be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omniqueue/src/backends/sqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl SqsConsumer {
}
}

pub async fn receive(&mut self) -> Result<Delivery> {
pub async fn receive(&self) -> Result<Delivery> {
let out = self
.client
.receive_message()
Expand All @@ -309,7 +309,7 @@ impl SqsConsumer {
}

pub async fn receive_all(
&mut self,
&self,
max_messages: usize,
deadline: Duration,
) -> Result<Vec<Delivery>> {
Expand Down

0 comments on commit 6a235be

Please sign in to comment.