aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dirpublish/src/reactor.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-dirpublish: change `Uploader::upload()` to not require `Arc`Steven Engler2026-07-301-11/+17
| | | | | | | | I was a bit confused as to why `Uploader::upload()` required an `Arc<Self>`, and after looking at the code it appears that this `Arc` isn't needed anywhere outside of the `PublishReactor`. Instead `Uploader::upload()` now takes a `&self` instead of `Arc<Self>`.
* Remove now-unneeded allow(clippy::cognitive_complexity)Jim Newsome2026-07-151-1/+0
|
* dirpublish: Extract the larger part of the select_biased body.Nick Mathewson2026-05-121-60/+87
|
* dirpublish: Turn TaskResult into a struct.Nick Mathewson2026-05-121-19/+22
|
* dirpublish: import span and Level for clarity.Nick Mathewson2026-05-121-2/+2
|
* New `tor-dirpublish` crate to handle uploading documents.Nick Mathewson2026-05-121-0/+673
This crate is a generalization of the logic for uploading we currently have in tor-hsservice to handle uploading a (possibly changing) document to a (possibly changing) list of targets. It supports different kinds of documents, different kinds of document targets, and different ways to upload. Currently only direct HTTP uploads are supported; we can add others in the future (and we'll have to, for bridges and onion services.) Closes #2499.