Skip to content

Commit

Permalink
Fix/fix (#13)
Browse files Browse the repository at this point in the history
* fix(compose): docker compose fixes

* chore(rmq): replaced direct to fanout exchange kind

* chore(ci): fixed fmt and clippy warnigns

---------

Co-authored-by: Bread White <breadrock1@email.net>
  • Loading branch information
breadrock1 and Bread White authored Nov 25, 2024
1 parent 372866b commit e2a47da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/publish/rabbit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ impl ServiceConnect for RabbitPublisher {
let channel = connection.create_channel().await?;

let exchange_opts = ExchangeDeclareOptions {
nowait: true,
durable: false,
nowait: config.no_wait(),
durable: config.durable(),
..Default::default()
};

Expand Down Expand Up @@ -86,9 +86,10 @@ impl Publisher for RabbitPublisher {
.await?;

tracing::info!(
exchange = exchange,
routing_key = routing,
"rabbit confirm: {confirm:?}"
exchange=exchange,
routing=routing,
confirm=?confirm,
"rabbit confirmed"
);

Ok(())
Expand Down

0 comments on commit e2a47da

Please sign in to comment.