matryer / vice

Go channels at horizontal scale (powered by message queues)
https://medium.com/@matryer/introducing-vice-go-channels-across-many-machines-bcac1147d7e2
Apache License 2.0
1.54k stars 79 forks source link

Minor simplification to backoff.Do() #43

Closed omarkohl closed 6 years ago

omarkohl commented 7 years ago

Functionality is not changed but the code is slightly simpler and possibly a tiny bit more efficient because there is one condition (switch case) less to check. That case only matched in the first iteration anyway.