improve tracing

This commit is contained in:
nora 2022-03-07 15:15:47 +01:00
parent bd5d4c03c5
commit 08fa9163b8
14 changed files with 273 additions and 150 deletions

View file

@ -15,7 +15,10 @@ use tokio::sync::mpsc;
pub type Queue = Arc<QueueInner>;
#[derive(Debug)]
pub enum QueueEvent {}
pub enum QueueEvent {
PublishMessage(Message),
Shutdown,
}
pub type QueueEventSender = mpsc::Sender<QueueEvent>;
pub type QueueEventReceiver = mpsc::Receiver<QueueEvent>;