summaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/src/docid.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use testing_rng() in tests throughout our crates.Nick Mathewson2022-06-021-1/+2
| | | | | | This only affects uses of thread_rng(), and affects them all more or less indiscriminately. One test does not work with ARTI_TEST_PRNG=deterministic; the next commit will fix it.
* tor-dirmgr/bootstrap.rs: refactor load_all -> load_documents_from_storeeta2022-05-101-6/+10
| | | | | | | | - Function renamed & docs tidied up a bit - Function signature now takes what it needs (immutable &dyn Store instead of mutex, slice instead of Vec) and nothing more - DocQuery::load_documents_into was also renamed DocQuery::load_from_store_into and given similar treatment
* tor-dirmgr/lib.rs: move DirMgr::load_documents_into to DocQueryeta2022-05-101-0/+55
| | | | | Move the function out of DirMgr, giving it a new &Mutex<DynStore> argument instead.
* tor-dirmgr: put routerdesc storage behind a feature.Nick Mathewson2021-11-121-18/+38
| | | | | | | (We keep routerdescs in the schema, since we don't want _that_ to fragment.) Part of #125.
* tor-dirmgr: tests for docid module.Nick Mathewson2021-11-041-1/+156
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+214
This will cause some pain for now, but now is really the best time to do this kind of thing.