Skip to content

Commit

Permalink
Merge pull request #21 from svix/onelson/svix-oss-fixups
Browse files Browse the repository at this point in the history
impl Debug for Delivery
  • Loading branch information
svix-onelson authored Feb 5, 2024
2 parents bcf6a1b + ed63604 commit 2d7493f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions omniqueue/src/queue/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::fmt;
use std::{any::TypeId, collections::HashMap, marker::PhantomData, sync::Arc};

use async_trait::async_trait;
Expand Down Expand Up @@ -116,6 +117,12 @@ impl Delivery {
}
}

impl fmt::Debug for Delivery {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Delivery").finish()
}
}

#[async_trait]
pub trait Acker: Send + Sync {
async fn ack(&mut self) -> Result<(), QueueError>;
Expand Down

0 comments on commit 2d7493f

Please sign in to comment.