summaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'config-updates-and-tests'Nick Mathewson2021-11-291-1/+1
|\
| * Add basic tests for high-level buildersNick Mathewson2021-11-251-1/+1
| | | | | | | | | | Make sure that we can change elements, and we can reconstruct builders that give us the same thing.
* | add semicolons if nothing returnedDaniel Eades2021-11-251-5/+6
|/
* Rename RetryConfig to DownloadSchedule, fold in parallelism.Nick Mathewson2021-11-181-5/+3
|
* tor-dirmgr: put routerdesc storage behind a feature.Nick Mathewson2021-11-121-5/+16
| | | | | | | (We keep routerdescs in the schema, since we don't want _that_ to fragment.) Part of #125.
* Tests for tor-dirmgr::bootstrapNick Mathewson2021-11-111-1/+1
|
* Minor tests for DirMgr::query_into_requestsNick Mathewson2021-11-111-0/+39
|
* tor-dirmgr: tests for making and expanding consensus requests.Nick Mathewson2021-11-101-0/+125
|
* tor-dirmgr: Tests for high-level loading functions.Nick Mathewson2021-11-101-3/+152
|
* More tests on tor-dirmgr::stateNick Mathewson2021-11-081-1/+1
| | | | | These test our download schedules, resetting to the original state, and storing downloaded objects.
* Mark consensus as "not-pending" even if its microdescs come from cache.Nick Mathewson2021-10-201-3/+23
| | | | | | | Previously our code would clear the 'pending' flag on a consensus only when a _downloaded_ md made it become usable. Closes #199.
* Move tor-dirmgr to use a sync::Mutex.Nick Mathewson2021-10-201-24/+22
| | | | | The futures::lock::Mutex was unnecessary, since we never held it when we were suspending.
* Reverse two swapped log messagesNick Mathewson2021-10-191-2/+2
|
* Improve logging when trying to get the lock on the directory cache.Nick Mathewson2021-10-191-3/+20
| | | | | | Previously we'd say that we were "waiting for the other process to bootstrap" even if it was already bootstrapped: and we wouldn't actually declare success when it was done.
* Remove useless into() conversions caught by clippy.Jani Monoses2021-10-181-11/+11
|
* Remove anyhow dependency from tor-dirmgr.Jani Monoses2021-10-181-5/+4
|
* Add a few tracing directives to tor-dirmgr.Nick Mathewson2021-10-131-1/+3
|
* tor-dirmgr: report bootstrap success on all successful cases.Nick Mathewson2021-10-131-0/+5
| | | | | Previously we would sometimes fail to report that we had successfully bootstrapped.
* Don't report the bootstrap as completed unless it actually succeeds.Nick Mathewson2021-10-131-4/+10
| | | | | (Previously we'd report it as successful even if the inner download task was a failure.)
* Notify guard manager on network change and state flush.Nick Mathewson2021-10-101-0/+12
|
* Re-export configuration types from tor-client.Nick Mathewson2021-10-091-1/+2
|
* enable checked_conversions lint.Nick Mathewson2021-10-091-0/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+690
This will cause some pain for now, but now is really the best time to do this kind of thing.