Skip to content

Commit

Permalink
Merge pull request #14 from svix/onelson/nack-should-nack
Browse files Browse the repository at this point in the history
fixup `Delivery::nack`
  • Loading branch information
svix-onelson authored Aug 10, 2023
2 parents 1a6d143 + 6992f59 commit 6f460b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omniqueue/src/queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub trait QueueBackend {
}
}

/// The output of qll ueue backends
/// The output of queue backends
pub struct Delivery {
pub(crate) payload: Option<Vec<u8>>,

Expand All @@ -73,7 +73,7 @@ impl Delivery {
/// nature of this will vary by backend, but usually it ensures that the same message is either
/// reinserted into the same queue or is sent to a separate collection.
pub async fn nack(mut self) -> Result<(), QueueError> {
self.acker.ack().await
self.acker.nack().await
}

/// This method will deserialize the contained bytes using the configured decoder. If a decoder
Expand Down

0 comments on commit 6f460b7

Please sign in to comment.