Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 7a330b2

Browse files
authored
Merge pull request #9 from microservices-demo/add_health_endpoint
Add health endpoint
2 parents d2c3383 + 7c9722e commit 7a330b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/works/weave/socks/queuemaster/configuration/RabbitMqConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public class RabbitMqConfiguration
2020
public ConnectionFactory connectionFactory()
2121
{
2222
CachingConnectionFactory connectionFactory = new CachingConnectionFactory("rabbitmq");
23-
// CachingConnectionFactory connectionFactory = new CachingConnectionFactory("192.168.99.104");
23+
connectionFactory.setCloseTimeout(5000);
24+
connectionFactory.setConnectionTimeout(5000);
2425
connectionFactory.setUsername("guest");
2526
connectionFactory.setPassword("guest");
2627
return connectionFactory;

0 commit comments

Comments
 (0)