diff --git a/connection/connection.go b/connection/connection.go index 85ef7d8..dcd202c 100644 --- a/connection/connection.go +++ b/connection/connection.go @@ -45,7 +45,7 @@ type ( ConnectionName string `json:"connection_name,omitempty" mapstructure:"connection_name" yaml:"connection_name"` Port int `json:"port,omitempty" mapstructure:"port" yaml:"port"` ReconnectRetry int `json:"reconnect_retry,omitempty" mapstructure:"reconnect_retry" yaml:"reconnect_retry"` - Channels int `json:"channels,omitempty" mapstructure:"channels" yaml:"channels"` + Channels uint16 `json:"channels,omitempty" mapstructure:"channels" yaml:"channels"` FrameSize int `json:"frame_size,omitempty" mapstructure:"frame_size" yaml:"frame_size"` ReconnectInterval time.Duration `json:"reconnect_interval,omitempty" mapstructure:"reconnect_interval" yaml:"reconnect_interval"` } diff --git a/go.mod b/go.mod index 4b9f101..d21d5cb 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/nano-interactive/go-amqp/v3 go 1.22 require ( - github.com/rabbitmq/amqp091-go v1.9.0 + github.com/rabbitmq/amqp091-go v1.10.0 github.com/stretchr/testify v1.9.0 golang.org/x/sync v0.7.0 ) diff --git a/go.sum b/go.sum index 4ec334f..39ed8a7 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rabbitmq/amqp091-go v1.9.0 h1:qrQtyzB4H8BQgEuJwhmVQqVHB9O4+MNDJCCAcpc3Aoo= github.com/rabbitmq/amqp091-go v1.9.0/go.mod h1:+jPrT9iY2eLjRaMSRHUhc3z14E/l85kv/f+6luSD3pc= +github.com/rabbitmq/amqp091-go v1.10.0 h1:STpn5XsHlHGcecLmMFCtg7mqq0RnD+zFr4uzukfVhBw= +github.com/rabbitmq/amqp091-go v1.10.0/go.mod h1:Hy4jKW5kQART1u+JkDTF9YYOQUHXqMuhrgxOEeS7G4o= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=