queuing things

This commit is contained in:
nora 2022-03-07 16:33:52 +01:00
parent 2fe3b4b77b
commit 770762b920
16 changed files with 102 additions and 13 deletions

View file

@ -42,7 +42,7 @@ pub fn declare(channel: Channel, queue_declare: QueueDeclare) -> Result<Method>
let queue = Arc::new(QueueInner {
id,
name: queue_name.clone(),
messages: Mutex::default(),
messages: amqp_datastructure::MessageQueue::new(),
durable,
exclusive: exclusive.then(|| channel.id),
deletion: if auto_delete {