Skip to content

Commit

Permalink
Merge pull request #10 from AleksandraKrasteva/test_setup
Browse files Browse the repository at this point in the history
match user service rabbitmq config to custom config
  • Loading branch information
AleksandraKrasteva authored Apr 7, 2024
2 parents 4d75cc5 + 92b8e61 commit 8ce0466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class RabbitMQConfig {

@Bean
public FanoutExchange deleteProfileExchange() {
return new FanoutExchange(fanoutExchangeName);
return new FanoutExchange(fanoutExchangeName, true, false);
}

@Bean
Expand All @@ -28,7 +28,7 @@ public Queue statisticsQueue() {

@Bean
public Queue postsQueue() {
return new Queue(postsQueueName);
return new Queue(postsQueueName, true);
}

@Bean
Expand All @@ -50,5 +50,7 @@ public Binding postsBinding() {
public Binding journeyBinding() {
return BindingBuilder.bind(journeyQueue()).to(deleteProfileExchange());
}


}

5 changes: 1 addition & 4 deletions config/rabbitmq/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@
"vhost": "/",
"durable": true,
"auto_delete": false,
"arguments": {
"x-max-length": 5,
"x-queue-type": "classic"
}
"arguments": {}
}
],
"exchanges": [
Expand Down

0 comments on commit 8ce0466

Please sign in to comment.