Skip to content

Commit

Permalink
fixed example "set client connection name"
Browse files Browse the repository at this point in the history
  • Loading branch information
korolev-d-l committed Aug 20, 2024
1 parent 0fd9164 commit 8868eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func ExampleTable_SetClientConnectionName() {
// name will be visible in RabbitMQ Management UI.
config := amqp.Config{Properties: amqp.NewConnectionProperties()}
config.Properties.SetClientConnectionName("my-client-app")
conn, err := amqp.Dial("amqp://guest:guest@localhost:5672/")
conn, err := amqp.DialConfig("amqp://guest:guest@localhost:5672/", config)
if err != nil {
log.Fatalf("connection.open: %s", err)
}
Expand Down

0 comments on commit 8868eb3

Please sign in to comment.