aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Try writing a bit more documentation for configuration types.Nick Mathewson2021-10-281-2/+13
|
* tor-dirmgr: tests for GetMicrodescsStateNick Mathewson2021-10-281-0/+100
|
* tor-dirmgr: tests for download schedules.Nick Mathewson2021-10-281-0/+23
|
* tor-dirmgr: Test for GetCertsStateNick Mathewson2021-10-281-5/+115
|
* tor-dirmgr: Tests for GetConsensusState.Nick Mathewson2021-10-281-0/+148
| | | | | | This test uses a consensus that I've copied from tor-netdoc/testdata. I would include it directly, but I think that will cause trouble when it comes time to run "cargo package".
* tor-dirmgr::state: Mock the view of current time.Nick Mathewson2021-10-281-3/+25
| | | | | This will let us test the state processing code without having to give it up-to-date directory objects.
* Upgrade to fslock version 0.2Nick Mathewson2021-10-271-1/+1
| | | | | This version makes all locks per-handle rather than per-process, by moving from lockf() to flock() on unix.
* Migrate tor-dirmgr from chrono to time 0.3Nick Mathewson2021-10-242-34/+38
| | | | | (This appears to be the emerging consensus of how to handle RUSTSEC-2020-0159.)
* Replace references to arti-client in the documentation.Nick Mathewson2021-10-211-2/+2
|
* Remove #![allow(unreachable_pub)] in shared_ref.rsNick Mathewson2021-10-211-7/+5
|
* Merge branch 'share_state'Nick Mathewson2021-10-213-53/+84
|\
| * Mark consensus as "not-pending" even if its microdescs come from cache.Nick Mathewson2021-10-203-8/+48
| | | | | | | | | | | | | | 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-203-45/+36
| | | | | | | | | | The futures::lock::Mutex was unnecessary, since we never held it when we were suspending.
* | fallbackdir: Regenerate list for October 2021David Goulet2021-10-211-881/+870
| | | | | | | | | | | | Closes #200 Signed-off-by: David Goulet <[email protected]>
* | Fix most warnings from nightly.Nick Mathewson2021-10-193-3/+9
|/ | | | (One represents code that I forgot to write.)
* Fix some typos in comments.Nick Mathewson2021-10-191-1/+1
| | | | Also, tell the "typos" tool to ignore Cargo.lock.
* 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-185-28/+30
|
* Remove anyhow dependency from tor-dirmgr.Jani Monoses2021-10-183-12/+61
|
* Use unwrap in tests.Jani Monoses2021-10-181-9/+15
| | | | | | | | | For now, this avoids having to separately handle AuthorityBuilderError, DirMgrConfigBuilderError, DownloadScheduleConfigBuilderError, NetworkConfigBuilderError and FallbackDirBuilderError when anyhow is not used. Turn off a clippy warning.
* Add a few tracing directives to tor-dirmgr.Nick Mathewson2021-10-133-3/+14
|
* 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-132-5/+14
| | | | | (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-103-0/+26
|
* Lock down some dirmgr config functions.Nick Mathewson2021-10-091-11/+11
|
* Re-export configuration types from tor-client.Nick Mathewson2021-10-092-1/+7
|
* enable checked_conversions lint.Nick Mathewson2021-10-091-0/+1
|
* Fix a type inference complaint in tor-dirmgr's tests.Nick Mathewson2021-10-071-1/+1
| | | | I have no idea why this just turned up now.
* Do not use set_ prefix on derive_builder settersJani Monoses2021-09-161-3/+3
|
* Use derive_builder for Authority and FallbackDir.Nick Mathewson2021-09-102-72/+4
|
* Typo fixesNick Mathewson2021-09-091-2/+2
|
* Use derive_builder for the rest of tor_dirmgr::configNick Mathewson2021-09-091-80/+21
|
* Use derive_builder for DownloadScheduleConfigNick Mathewson2021-09-081-66/+7
|
* Use derive_builder for NetworkConfig.Nick Mathewson2021-09-081-97/+37
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-085-6/+11
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2714-0/+6492
This will cause some pain for now, but now is really the best time to do this kind of thing.