furdarius / rabbitroutine

Lightweight library that handles RabbitMQ auto-reconnect and publishing retry routine for you.
https://pkg.go.dev/github.com/furdarius/rabbitroutine
MIT License
110 stars 17 forks source link

Compile error #7

Closed f0cii closed 5 years ago

f0cii commented 5 years ago

Build like this:

SET CGO_ENABLED=0 SET GOOS=windows SET GOARCH=386 go build

Got an error. .\connector.go:45:25: constant 9223372036854775807 overflows uint.\connector.go:45:25: constant 9223372036854775807 overflows uint

it should be like this in line 45: cfg.ReconnectAttempts = math.MaxUint32

furdarius commented 5 years ago

Wow, really, didn't tested library on windows and for 32bit systems. Thank your for issue! Have no laptop around me now, so I'll fix it on the next week.