Dhia Ayachi c680a35b36
Net 2229/rpc reduce max retries 2 (#16165)
* feat: calculate retry wait time with exponential back-off

* test: add test for getWaitTime method

* feat: enforce random jitter between min value from previous iteration and current

* extract randomStagger to simplify tests and use Milliseconds to avoid float math.

* rename variables

* add test and rename comment

---------

Co-authored-by: Poonam Jadhav <poonam.jadhav@hashicorp.com>
2023-02-06 14:07:41 -05:00
..
2020-06-16 13:21:11 -04:00
2017-01-17 22:47:59 -08:00
2016-05-02 23:52:37 -07:00
2018-01-28 22:40:13 +04:00
2022-06-29 09:46:37 -07:00
2018-10-19 12:04:07 -04:00