mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-15 20:25:02 +01:00
more
This commit is contained in:
parent
08ba799d23
commit
f860714b2b
9 changed files with 64 additions and 24 deletions
|
|
@ -53,7 +53,11 @@ pub fn declare(channel: Channel, queue_declare: QueueDeclare) -> Result<Method>
|
|||
|
||||
{
|
||||
let mut global_data_lock = global_data.lock();
|
||||
global_data_lock.queues.insert(queue_name.clone(), queue);
|
||||
|
||||
global_data_lock
|
||||
.queues
|
||||
.entry(queue_name.clone())
|
||||
.or_insert(queue);
|
||||
}
|
||||
|
||||
global_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue