Merge improvements #1

Merged
tormakris merged 5 commits from kotlin-hazi into master 2020-05-29 13:23:32 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 9074619914 - Show all commits

View File

@ -54,7 +54,7 @@ fun Application.module() {
val queueName = channel.queueDeclare().queue
channel.queueBind(queueName, rabbitExchangeName, "")
channel.basicConsume(rabbitExchangeName, true, DatabaseConsumer())
channel.basicConsume(queueName, true, DatabaseConsumer())
routing {
install(StatusPages) {

View File

@ -9,9 +9,9 @@ import com.rabbitmq.client.Envelope
import com.rabbitmq.client.ShutdownSignalException
class DatabaseConsumer : Consumer {
val resultObjectService = ResultObjectService()
private val resultObjectService = ResultObjectService()
val gson = Gson()
private val gson = Gson()
override fun handleConsumeOk(consumerTag : String?) {
}
override fun handleCancelOk(p0 : String?) {