Skip to content

Commit

Permalink
Ktor RabbitMQ plugin: install.kt modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamirDenis-Tudor committed Dec 17, 2024
1 parent ffeafed commit bc66c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import io.ktor.server.application.*

fun Application.install() {
install(KabbitMQ) {
uri = "amqp://<user>:<password>@<address>:<port>"
defaultConnectionName = "<default_connection>"
connectionAttempts = 20
attemptDelay = 10
uri = "amqp://guest:guest@localhost:5672"
}

queueBind {
Expand All @@ -31,7 +28,7 @@ fun Application.install() {
queueBind {
queue = "test-queue"
exchange = "test-exchange"
exchange = "test-routing-key"
routingKey = "test-routing-key"
queueDeclare {
queue = "test-queue"
arguments = mapOf(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ktor-server-rabbitmq
description: Adds Kafka support to your application
name: KabbitMQ
description: Adds RabbitMQ support to your application
vcsLink: https://github.com/DamirDenis-Tudor/ktor-server-rabbitmq
license: Apache 2.0

Expand Down

0 comments on commit bc66c08

Please sign in to comment.