summaryrefslogtreecommitdiff
path: root/crates/tor-basic-utils/src/retry.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-basic-utils: Add RetryDelay::reset testSamanta Navarro2022-04-231-0/+2
|
* Add RetrySchedule::reset()Nick Mathewson2022-04-041-0/+5
| | | | | | | | | | | Previously the code would do stuff like ``` schedule = RetrySchedule::new(INITIAL_DELAY); ``` which is needlessly verbose, since the schedule already keeps track of its initial delay.
* Adjust a commentIan Jackson2022-03-211-1/+1
| | | | Noticed this while reviewing !426
* RetryDelay: remove accessors.Nick Mathewson2022-03-161-17/+1
| | | | Instead, check initial_delay in dirmgr directly.
* Fix up documentation on RetryDelay.Nick Mathewson2022-03-161-10/+19
| | | | | It's no longer about downloads; it's about whatever you need to retry.
* Move RetryDelay from dirmgr to basic-utils.Nick Mathewson2022-03-161-0/+166
This (almost) a pure code-movement commit: it also makes one public function private in order to suppress a warning.