EspressoSystems / cape

Configurable Asset Privacy for Ethereum
https://cape.docs.espressosys.com/
GNU General Public License v3.0
94 stars 16 forks source link

Crates for exponential backoffs / retries #494

Open pictographer opened 2 years ago

pictographer commented 2 years ago

It's probably too small of a thing to warrant pulling in a dependency but there are some crates for exponential backoffs / retries like

_Originally posted by @sveitser in https://github.com/SpectrumXYZ/cape/pull/487#discussion_r804690412_

pictographer commented 2 years ago

In testing, there's no safe waiting period for a server to start. It's better to poll until the server is ready or too much time has passed and it's clear there's a problem.