fix exchanges
All checks were successful
Build and Publish / build-release (push) Successful in 1m25s
All checks were successful
Build and Publish / build-release (push) Successful in 1m25s
This commit is contained in:
@@ -7,7 +7,7 @@ defmodule PolicyService.Consumers.QuoteReceivedConsumer do
|
||||
alias PolicyService.Commands.CarPolicy
|
||||
alias PolicyService.Aggregates.PolicyId
|
||||
|
||||
@exchange "carrier_inbox.events"
|
||||
@exchange "policy_service.events.quote_received"
|
||||
@queue "policy_service.quote_received"
|
||||
@routing_key "quote.received"
|
||||
|
||||
@@ -21,8 +21,6 @@ defmodule PolicyService.Consumers.QuoteReceivedConsumer do
|
||||
{:ok, conn} = AMQP.Connection.open(amqp_url)
|
||||
{:ok, channel} = AMQP.Channel.open(conn)
|
||||
|
||||
AMQP.Exchange.declare(channel, @exchange, :topic, durable: true)
|
||||
|
||||
AMQP.Queue.declare(channel, @queue, durable: true)
|
||||
AMQP.Queue.bind(channel, @queue, @exchange, routing_key: @routing_key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user