Skip to content

Commit

Permalink
added autorecovery to rabbit connection (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: IB <[email protected]>
  • Loading branch information
baitcode and IB authored Nov 10, 2023
1 parent 0a0bdb2 commit a250c42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/RabbitMQBroker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class RabbitMQBroker(
factory.metricsCollector = metricsCollector
}
factory.setUri(uri)
factory.isAutomaticRecoveryEnabled = true
connection = factory.newConnection()
channel = connection.createChannel()

Expand Down

0 comments on commit a250c42

Please sign in to comment.