mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
fix
This commit is contained in:
parent
dbc577abbc
commit
504757b324
7 changed files with 52 additions and 29 deletions
|
|
@ -9,6 +9,7 @@ use haesli_core::{
|
|||
};
|
||||
use parking_lot::Mutex;
|
||||
use tokio::sync::mpsc;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::{queue_worker::QueueTask, Result};
|
||||
|
||||
|
|
@ -25,7 +26,7 @@ pub fn declare(channel: Channel, queue_declare: QueueDeclare) -> Result<Method>
|
|||
} = queue_declare;
|
||||
|
||||
// 2.1.4.1 - If no queue name is given, chose a name
|
||||
let queue_name = if queue_name.is_empty() {
|
||||
let queue_name = if !queue_name.is_empty() {
|
||||
queue_name
|
||||
} else {
|
||||
format!("q_{}", haesli_core::random_uuid())
|
||||
|
|
@ -63,6 +64,8 @@ pub fn declare(channel: Channel, queue_declare: QueueDeclare) -> Result<Method>
|
|||
event_send,
|
||||
});
|
||||
|
||||
debug!(%queue_name, "Creating queue");
|
||||
|
||||
{
|
||||
let mut global_data_lock = global_data.lock();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue