mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
queuing things
This commit is contained in:
parent
2fe3b4b77b
commit
770762b920
16 changed files with 102 additions and 13 deletions
|
|
@ -6,6 +6,7 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
amqp_datastructure = { path = "../amqp_datastructure" }
|
||||
bytes = "1.1.0"
|
||||
parking_lot = "0.12.0"
|
||||
rand = "0.8.5"
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ impl Display for QueueName {
|
|||
pub struct QueueInner {
|
||||
pub id: QueueId,
|
||||
pub name: QueueName,
|
||||
pub messages: Mutex<Vec<Message>>, // use a concurrent linked list???
|
||||
pub messages: amqp_datastructure::MessageQueue<Message>,
|
||||
pub durable: bool,
|
||||
pub exclusive: Option<ChannelId>,
|
||||
/// Whether the queue will automatically be deleted when no consumers uses it anymore.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue