Skip to content

Commit

Permalink
Remove the old link product (#48)
Browse files Browse the repository at this point in the history
Add the client platfom
  • Loading branch information
Gsantomaggio committed Mar 17, 2022
1 parent f030069 commit d25e3e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ const (

defaultHeartbeat = 10 * time.Second
defaultConnectionTimeout = 30 * time.Second
defaultProduct = "https://github.com/streadway/amqp"
defaultProduct = "Amqp 0.9.1 Client"
defaultVersion = "β"
platform = "golang"
// Safer default that makes channel leaks a lot easier to spot
// before they create operational headaches. See https://github.com/rabbitmq/rabbitmq-server/issues/1593.
defaultChannelMax = (2 << 10) - 1
Expand Down Expand Up @@ -757,8 +758,9 @@ func (c *Connection) openStart(config Config) error {
func (c *Connection) openTune(config Config, auth Authentication) error {
if len(config.Properties) == 0 {
config.Properties = Table{
"product": defaultProduct,
"version": defaultVersion,
"product": defaultProduct,
"version": defaultVersion,
"platform": platform,
}
}

Expand Down

0 comments on commit d25e3e5

Please sign in to comment.