mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 12:45:04 +01:00
even more queuing around
This commit is contained in:
parent
4643483d70
commit
d90d61504c
5 changed files with 24 additions and 7 deletions
|
|
@ -4,8 +4,10 @@ use amqp_core::error::ProtocolError;
|
|||
use amqp_core::methods::{BasicConsume, Method};
|
||||
|
||||
pub async fn consume(
|
||||
_channel_handle: ChannelHandle,
|
||||
channel_handle: ChannelHandle,
|
||||
_basic_consume: BasicConsume,
|
||||
) -> Result<Method, ProtocolError> {
|
||||
let _channel = channel_handle.lock();
|
||||
|
||||
amqp_todo!()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,17 +25,17 @@ pub async fn declare(
|
|||
let queue_name = QueueName::new(queue_name.into());
|
||||
|
||||
if !arguments.is_empty() {
|
||||
return Err(ConException::Todo.into());
|
||||
amqp_todo!();
|
||||
}
|
||||
|
||||
if passive || no_wait || durable {
|
||||
amqp_todo!();
|
||||
}
|
||||
|
||||
let global_data = {
|
||||
let channel = channel_handle.lock();
|
||||
let global_data = channel.global_data.clone();
|
||||
|
||||
if passive || no_wait {
|
||||
amqp_todo!();
|
||||
}
|
||||
|
||||
let id = QueueId::random();
|
||||
let queue = Arc::new(RawQueue {
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue