forked from jmug/stoatchat
refactor: add error messages for Rabbit issues
This commit is contained in:
@@ -93,8 +93,12 @@ pub async fn web() -> Rocket<Build> {
|
|||||||
&config.rabbit.password,
|
&config.rabbit.password,
|
||||||
))
|
))
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.expect("Failed to connect to RabbitMQ");
|
||||||
let channel = connection.open_channel(None).await.unwrap();
|
|
||||||
|
let channel = connection
|
||||||
|
.open_channel(None)
|
||||||
|
.await
|
||||||
|
.expect("Failed to open RabbitMQ channel");
|
||||||
|
|
||||||
channel
|
channel
|
||||||
.exchange_declare(
|
.exchange_declare(
|
||||||
|
|||||||
Reference in New Issue
Block a user