jhalterman / lyra

High availability RabbitMQ client
Apache License 2.0
263 stars 74 forks source link

Allow backoff interval durations to use different units #47

Closed platy closed 9 years ago

platy commented 9 years ago

The RecurringPolicy asserted that the size of the max interval is greater than the initial interval and didn't take into account the units.

This change compares the nanoseconds of the 2 durations.

jhalterman commented 9 years ago

Thanks for this.