use good old rabbitmq api
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -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:
 | 
			
		||||
@@ -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)
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -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.*
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user