summaryrefslogtreecommitdiff
path: root/crates/tor-dirserver/src/http
Commit message (Collapse)AuthorAgeFilesLines
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* tor-dirserver: clippy fixesClara Engler2025-11-031-2/+2
|
* tor-dirserver: Apply database changes to httpClara Engler2025-11-031-50/+52
| | | | | | | | | | This commit applies the recent changes to the database module into the http and http::cache module. Notably, this includes the use of the database::sql! macro as well as the use of database::read_tx and database::rw_tx for creation transaction and saving, as well as retrying, although the latter one is subject to SQLite's own busy handler
* tor-dirserver: Make database full syncClara Engler2025-10-301-55/+50
| | | | | | | | | | This commit makes the entire database operations synchronous, thereby replacing deadpool with r2d2. The full motivation is outlined in a rustdoc comment at the top of the `database` module, but it can be summarized to the fact that SQLite is by design inherently synchronous due to directly interfacing with the file system.
* tor-dirmirror: Introduce the `sql!` macroClara Engler2025-10-301-0/+2
| | | | | | This commit introduces the no-op sql macro used to mark string literals as SQL statements. It is purely semantical and serves the purpose to quickly identify string literals as SQL statements.
* tor-dirserver: Expose Arc of StoreCacheClara Engler2025-10-151-9/+9
|
* tor-dirserver: Do not lock during db queryClara Engler2025-10-151-7/+14
|
* tor-dirserver: Fix rustdoc commentClara Engler2025-10-151-3/+3
|
* tor-dirserver: Some clippy fixesClara Engler2025-10-151-0/+13
|
* tor-dirserver: Remove due TODOClara Engler2025-10-151-4/+0
|
* tor-dirserver: Improve the error situationClara Engler2025-10-151-69/+78
|
* tor-dirserver: Move StoreCache into own moduleClara Engler2025-10-151-0/+160