use good old rabbitmq api
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-05-22 01:12:14 +02:00
parent 5e443345af
commit 8bec7d6120
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
3 changed files with 4 additions and 9 deletions

View File

@ -6,7 +6,7 @@ services:
image: "postgres:12"
restart: "always"
volumes:
- "ktor-data:/var/lib/postgresql/data"
- "input-ktor-data:/var/lib/postgresql/data"
ports:
- "127.0.0.1:54321:5432"
environment:
@ -40,8 +40,8 @@ services:
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "127.0.0.1:15672:15672"
- "127.0.0.1:15672:15672"
- "127.0.0.1:5672:5672"
volumes:
ktor-data:
input-ktor-data:

View File

@ -106,11 +106,7 @@ class InputServiceServer {
resultObjectService.addOne(currentApiObject)
}
connection.confirmChannel {
publish {
publishWithConfirm(OutboundMessage(rabbitExchangeName, "", MessageProperties.PERSISTENT_BASIC, tag.toString()))
}
}
channel.basicPublish("",queueName, null, tag.toString().toByteArray())
call.respond(currentApiObject)
}

View File

@ -8,7 +8,6 @@ import org.jetbrains.exposed.sql.ResultRow
import org.jetbrains.exposed.sql.select
import org.jetbrains.exposed.sql.selectAll
import org.jetbrains.exposed.sql.transactions.transaction
import java.time.LocalDate
import java.util.*