mirror of https://github.com/hashicorp/consul
c680a35b36
* 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> |
||
---|---|---|
.. | ||
decode | ||
file | ||
maps | ||
mutex | ||
retry | ||
routine | ||
semaphore | ||
serf | ||
stringslice | ||
template | ||
ttlcache | ||
cluster.go | ||
cluster_test.go | ||
eof.go | ||
eof_test.go | ||
json.go | ||
map_walker.go | ||
map_walker_test.go | ||
math.go | ||
math_test.go | ||
path.go | ||
rand.go | ||
rtt.go | ||
rtt_test.go | ||
stop_context.go | ||
stop_context_test.go | ||
strings.go | ||
telemetry.go | ||
telemetry_test.go | ||
translate.go | ||
translate_test.go | ||
useragent.go | ||
useragent_test.go | ||
uuid.go |