wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
805 stars 128 forks source link

Integer overflow when compiling for arm 32 arch #109

Closed rbell13 closed 1 year ago

rbell13 commented 1 year ago

Getting the following error compiling for arm32 raspberry pi: /go/pkg/mod/github.com/wagslane/go-rabbitmq@v0.12.1/internal/dispatcher/dispatcher.go:48:18: cannot use maxRand - minRand (untyped int constant 9223372036854775807) as int value in argument to rand.Intn (overflows)

consider changing from MaxInt64 to MaxInt