Closed JiakunYan closed 5 years ago
The method Backoff::backoff() does not increase sleeping time. I think it should invoke increase_backoff_impl_() in its function body.
Backoff::backoff()
increase_backoff_impl_()
void backoff() { usleep(sleep_time_); } void increase_backoff_impl_() { sleep_time_ = backoff_fn_(sleep_time_); sleep_time_ = std::max(sleep_time_, max_sleep_); }
Feel free to open a pull request to fix this.
The method
Backoff::backoff()
does not increase sleeping time. I think it should invokeincrease_backoff_impl_()
in its function body.