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

This commit is contained in:
Torma Kristóf 2021-08-11 15:08:31 +02:00
parent b04ddf66c6
commit 4825f54c89
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

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