<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirserver/src, branch arti-v1.8.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.8.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.8.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-11-27T12:59:38Z</updated>
<entry>
<title>tor-dirserver: Improve database::Timestamp</title>
<updated>2025-11-27T12:59:38Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-11-26T15:17:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5f1305d17e54bf79b9d16c054f47487b1aaafea5'/>
<id>urn:sha1:5f1305d17e54bf79b9d16c054f47487b1aaafea5</id>
<content type='text'>
This commit improves upon the work made in arti!3460, by establishing
the `database::Timestamp` type as a general purpose type for the
handling of timestamp throughout the code base.

It also replaces all previous occurrences of `SystemTime` within
`dirmirror::operation`, which leads to the reduction of code complexity
in one particular function, namely `calculate_sync_timeout`.
</content>
</entry>
<entry>
<title>tor-dirserver: Fix clippy warning for time</title>
<updated>2025-11-26T10:53:14Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-11-26T10:53:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b3656f027f2c882a0e3b93905eeae5aedc09ae2f'/>
<id>urn:sha1:b3656f027f2c882a0e3b93905eeae5aedc09ae2f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirserver: Use `saturating-time`</title>
<updated>2025-11-26T10:27:15Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-11-25T17:20:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=73a053117033d0d26897a009765915739ba73180'/>
<id>urn:sha1:73a053117033d0d26897a009765915739ba73180</id>
<content type='text'>
This commit replaces the custom implementation of `SaturatingSystemTime`
with the `saturating-time` crate, additionally adding a new type to the
`database` module called `Timestamp`, in order to have a convenient
wrapper around `ToSql` and `FromSql`.
</content>
</entry>
<entry>
<title>Fix name of clippy lint to unchecked_time_subtraction (2)</title>
<updated>2025-11-06T11:28:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-06T11:23:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff'/>
<id>urn:sha1:a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff</id>
<content type='text'>
Run maint/add_warning
</content>
</entry>
<entry>
<title>Merge branch 'dirserver-http-db' into 'main'</title>
<updated>2025-11-05T17:25:12Z</updated>
<author>
<name>Ian Jackson</name>
<email>iwj@torproject.org</email>
</author>
<published>2025-11-05T17:25:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=55c82ef693759ecd0b0b73bd8cd86016069e8f3b'/>
<id>urn:sha1:55c82ef693759ecd0b0b73bd8cd86016069e8f3b</id>
<content type='text'>
tor-dirserver: Apply database changes to http

See merge request tpo/core/arti!3426</content>
</entry>
<entry>
<title>tor-dirserver: Refactor cons retrieval with JOIN</title>
<updated>2025-11-04T18:10:57Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-11-04T17:08:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=585c0c6db15831ad87f74351ef5ca59c2dcaeb47'/>
<id>urn:sha1:585c0c6db15831ad87f74351ef5ca59c2dcaeb47</id>
<content type='text'>
This commit refactors `get_recent_consensus()` in `tor-dirserver` to use
a single SQL statement with the power of `INNER JOIN` instead of two SQL
statements querying the store after retrieving the SHA256 hash.

The primary motivation for this is to have cleaner code.
A single SQL statement is often-times easier to comprehend, as well more
performant in execution, although that can only be proven with a
profiler and is not of much concern, given that this function is only
executed roughly every 60-90min.
</content>
</entry>
<entry>
<title>tor-dirserver: clippy fixes</title>
<updated>2025-11-03T12:59:27Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-11-03T12:59:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=325a6a476f931ea8aa62b177af5268824141e948'/>
<id>urn:sha1:325a6a476f931ea8aa62b177af5268824141e948</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirserver: Apply database changes to http</title>
<updated>2025-11-03T12:41:07Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-10-22T13:49:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=011a8d597aa04ad3277599ae541e962995b2b154'/>
<id>urn:sha1:011a8d597aa04ad3277599ae541e962995b2b154</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>tor-dirserver: Add SaturatingSystemTime</title>
<updated>2025-10-30T15:54:27Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-10-27T11:21:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=61a641e9b4b4932849e8aa212348a808d95a7033'/>
<id>urn:sha1:61a641e9b4b4932849e8aa212348a808d95a7033</id>
<content type='text'>
This commit changes various things in the dirmirror operation, namely
the use of a SystemTime wrapper type that provides saturation on both
ends.
</content>
</entry>
<entry>
<title>tor-dirserver: Ensure positive timestamps</title>
<updated>2025-10-30T15:53:27Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2025-10-27T11:21:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=316a6361d4eea19f4cf14272fd68ec4268162687'/>
<id>urn:sha1:316a6361d4eea19f4cf14272fd68ec4268162687</id>
<content type='text'>
This commit adds `CHECK` constraints to the database schema in order to
ensure all timestamps are positive.
</content>
</entry>
</feed>
