use direct exchange
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-11 15:08:31 +02:00
parent b04ddf66c6
commit 4825f54c89

View File

@ -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, "")