This commit is contained in:
parent
b04ddf66c6
commit
4825f54c89
@ -51,7 +51,7 @@ fun Application.module() {
|
||||
|
||||
val rabbitExchangeName = appConfig.property("ktor.mq.exchange").getString()
|
||||
|
||||
channel.exchangeDeclare(rabbitExchangeName, BuiltinExchangeType.FANOUT)
|
||||
channel.exchangeDeclare(rabbitExchangeName, BuiltinExchangeType.DIRECT)
|
||||
val queueName = channel.queueDeclare().queue
|
||||
channel.queueBind(queueName, rabbitExchangeName, "")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user