Skip to content

Commit

Permalink
Optimize amqp sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
luduoxin committed Mar 22, 2024
1 parent faac75e commit 86dfa86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rabbitmq/rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ func connRbbitmq() error {
scheme = "amqps"
}

amqpcoinf := amqp.Config{
amqpConfig := amqp.Config{
Vhost: vhost,
Heartbeat: 10 * time.Second,
Locale: "en_US",
}

conn, err := amqp.DialConfig(fmt.Sprintf("%s://%s:%s@%s:%s/", scheme, user, password, host, port), amqpcoinf)
conn, err := amqp.DialConfig(fmt.Sprintf("%s://%s:%s@%s:%s/", scheme, user, password, host, port), amqpConfig)
if err != nil {
return err
}
Expand Down

0 comments on commit 86dfa86

Please sign in to comment.