Skip to content

Commit

Permalink
By default, the virtual host configured in the uri is used
Browse files Browse the repository at this point in the history
  • Loading branch information
cd365 committed Jan 5, 2024
1 parent a6fa7f7 commit 0c1b4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _examples/producer/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ package main
import (
"context"
"flag"
amqp "github.com/rabbitmq/amqp091-go"
"log"
"os"
"os/signal"
"syscall"
"time"

amqp "github.com/rabbitmq/amqp091-go"
)

var (
Expand Down Expand Up @@ -58,7 +59,6 @@ func setupCloseHandler(exitCh chan struct{}) {

func publish(ctx context.Context, publishOkCh <-chan struct{}, confirmsCh chan<- *amqp.DeferredConfirmation, confirmsDoneCh <-chan struct{}, exitCh chan struct{}) {
config := amqp.Config{
Vhost: "/",
Properties: amqp.NewConnectionProperties(),
}
config.Properties.SetClientConnectionName("producer-with-confirms")
Expand Down

0 comments on commit 0c1b4d5

Please sign in to comment.