fixes, hopefully
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-19 04:12:00 +02:00
parent 13eec03d8e
commit ce1aa81dbd

View File

@ -16,9 +16,9 @@ class ConsumerWrapper {
val inputConnection = factory.newConnection()
val inputChannel = inputConnection.createChannel()
inputChannel.exchangeDeclare(envConfig.mqExchange, BuiltinExchangeType.FANOUT)
inputChannel.exchangeDeclare(envConfig.mqExchange, BuiltinExchangeType.DIRECT)
val inputQueueName = inputChannel.queueDeclare().queue
inputChannel.queueBind(inputQueueName, envConfig.mqExchange, "")
inputChannel.queueBind(inputQueueName, envConfig.mqExchange, "meta")
inputChannel.basicConsume(inputQueueName, false, DatabaseConsumer(inputChannel))
}