aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/src/bridgedesc.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* bridgedesc: Introduce DownloadedIan Jackson2022-11-031-13/+17
| | | | | This gives names to things and makes things clearer, and this will be even more true in a moemnt.
* bridgedesc: download: Break out process_documentIan Jackson2022-11-031-47/+54
| | | | We're going to want to reuse this for handling cached stuff.
* bridgedesc: Prepare Mockable trait for if-modified-sinceIan Jackson2022-11-031-4/+12
|
* bridge descriptors: logging: Log addition and removal (fmt)Ian Jackson2022-11-031-12/+20
| | | | Worsify formatting as demanded by rustfmt.
* bridge descriptors: logging: Log addition and removalIan Jackson2022-11-031-8/+31
| | | | | This involves breaking the calls to `new_bridges.remove` into a helper that does the logging.
* bridge descriptors: logging: Log download start and outcomeIan Jackson2022-11-031-0/+6
|
* bridge descriptors: Rewrite set_bridgesIan Jackson2022-11-031-18/+12
| | | | | | | | This was fundamentally confused and irregular. Now it is more regular: it does the same things to all the elements of Tracked, and a simple filtering on current. This fixes a bug, for which I'm about to add a test case.
* bridge descriptors: Change default max_refetchIan Jackson2022-11-031-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/820#note_2850269
* bridge descriptors: Add clarification about bridge statesIan Jackson2022-11-031-0/+3
|
* bridge descriptors: Improve and fix docs for consider_launchingIan Jackson2022-11-031-1/+6
|
* bridge descriptors: Add comments where StateGuard is droppedIan Jackson2022-11-031-0/+8
|
* bridge descriptors: Document `changed` and `earliest_timeout` OptionsIan Jackson2022-11-031-0/+5
|
* bridge descriptors: Document updates argument to timeout_taskIan Jackson2022-11-031-0/+6
|
* bridge descriptors: TestsIan Jackson2022-11-031-0/+13
|
* bridge descriptors: Provide a consistency check functionIan Jackson2022-11-031-0/+196
| | | | | This is really part of the tests, but I put it here so that it can be compiled-in if someone wants it during debugging.
* bridge descriptors: Provide an implementation of BridgeDescProviderIan Jackson2022-11-031-0/+1095
Tests will come in a moment.