Use auto-delete on queue.declare, not passive
This commit is contained in:
parent
d9cfbf1600
commit
d33ae6d809
@ -9,7 +9,7 @@ main = do
|
|||||||
ch <- openChannel conn
|
ch <- openChannel conn
|
||||||
|
|
||||||
declareQueue ch newQueue {queueName = "hello",
|
declareQueue ch newQueue {queueName = "hello",
|
||||||
queuePassive = False,
|
queueAutoDelete = False,
|
||||||
queueDurable = False}
|
queueDurable = False}
|
||||||
|
|
||||||
putStrLn " [*] Waiting for messages. to Exit press CTRL+C"
|
putStrLn " [*] Waiting for messages. to Exit press CTRL+C"
|
||||||
|
@ -9,7 +9,7 @@ main = do
|
|||||||
ch <- openChannel conn
|
ch <- openChannel conn
|
||||||
|
|
||||||
declareQueue ch newQueue {queueName = "hello",
|
declareQueue ch newQueue {queueName = "hello",
|
||||||
queuePassive = False,
|
queueAutoDelete = False,
|
||||||
queueDurable = False}
|
queueDurable = False}
|
||||||
|
|
||||||
publishMsg ch "" "hello"
|
publishMsg ch "" "hello"
|
||||||
|
Loading…
Reference in New Issue
Block a user