Skip to content

Commit

Permalink
server: Remove unused traits
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Mar 15, 2024
1 parent f54941f commit 028015c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions server/svix-server/src/queue/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::{sync::Arc, time::Duration};

use axum::async_trait;
use omniqueue::{
backends::InMemoryBackend, Delivery, DynConsumer, DynScheduledProducer, QueueConsumer,
ScheduledQueueProducer,
Expand Down Expand Up @@ -274,13 +273,3 @@ impl TryFrom<Delivery> for TaskQueueDelivery {
})
}
}

#[async_trait]
trait TaskQueueSend: Sync + Send {
async fn send(&self, task: Arc<QueueTask>, delay: Option<Duration>) -> Result<()>;
}

#[async_trait]
trait TaskQueueReceive {
async fn receive_all(&mut self) -> Result<Vec<TaskQueueDelivery>>;
}

0 comments on commit 028015c

Please sign in to comment.