use direct exchange
continuous-integration/drone/push Build is passing Details

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
1 changed files with 1 additions and 1 deletions

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