From 8868eb3a02ceb50a0bb1f22bc06023d7417856b1 Mon Sep 17 00:00:00 2001 From: Dmitry Korolev Date: Tue, 20 Aug 2024 20:02:27 +0300 Subject: [PATCH] fixed example "set client connection name" --- examples_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples_test.go b/examples_test.go index 81795a1..35e414b 100644 --- a/examples_test.go +++ b/examples_test.go @@ -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) }