fix exchanges
All checks were successful
Build and Publish / build-release (push) Successful in 1m25s

This commit is contained in:
2026-04-16 14:55:34 -05:00
parent ec69df8e95
commit c485d37b6b
3 changed files with 30 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ defmodule PolicyService.Consumers.PolicyIssuedConsumer do
alias PolicyService.Commands.CarPolicy
alias PolicyService.Aggregates.PolicyId
@exchange "carrier_inbox.events"
@exchange "policy_service.events.policy_issued"
@queue "policy_service.policy_issued"
@routing_key "policy.issued"
@@ -16,7 +16,6 @@ defmodule PolicyService.Consumers.PolicyIssuedConsumer do
{:ok, conn} = AMQP.Connection.open(amqp_url())
{:ok, channel} = AMQP.Channel.open(conn)
AMQP.Exchange.topic(channel, @exchange, durable: true)
AMQP.Queue.declare(channel, @queue, durable: true)
AMQP.Queue.bind(channel, @queue, @exchange, routing_key: @routing_key)
AMQP.Basic.qos(channel, prefetch_count: 10)