gojek/ziggurat

the timeout value goes out of the Integer range of Clojure in exponential backoff calculation

mjayprateek opened this issue · 1 comments

Happens at: https://github.com/gojek/ziggurat/blob/3.4.0/src/ziggurat/messaging/producer.clj#L60

user=> (int (* (dec (Math/pow 2 18)) 5000))
1310715000

user=> (int (* (dec (Math/pow 2 19)) 5000))
Execution error (IllegalArgumentException) at user/eval622 (form-init8985262331423121641.clj:1).
Value out of range for int: 2.621435E9

Fixed