<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirserver/src/mirror/operation.rs, branch arti-v2.1.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.1.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-01-22T16:17:37Z</updated>
<entry>
<title>Merge branch 'database-refactoring' into 'main'</title>
<updated>2026-01-22T16:17:37Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-22T16:17:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=98311d1bf749c2cd71ae85ec4b60815b689dad0e'/>
<id>urn:sha1:98311d1bf749c2cd71ae85ec4b60815b689dad0e</id>
<content type='text'>
tor-dirserver: Refactorings in the database.rs module

See merge request tpo/core/arti!3599</content>
</entry>
<entry>
<title>tor-dirserver: Make downloader stateless</title>
<updated>2026-01-20T12:16:44Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-20T12:01:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d4d99b5dc87632596fb6786288a13a24ec79efe0'/>
<id>urn:sha1:d4d99b5dc87632596fb6786288a13a24ec79efe0</id>
<content type='text'>
This commit makes the downloader found in `mirror::operation::download`
stateless by removing the `preferred_authority` field and changing all
methods from `&amp;mut self` to `&amp;self`.

The preferred authority is now accepted as a parameter to
`DownloadManager::download` which also returns a tuple now with the
actually used authority alongside the response, putting the management
of this to the responsibility of the caller.

Meanwhile, it also renames the structure from `ConsensusBoundDownloader`
to `DownloadManager` because it no longer keeps a state that
invalidates after a consensus "ends".

The purpose of this is to simplify overall state in order to make the
implementation of a finite-state-machine for the dirmirror operation
more easy (and deterministic).
</content>
</entry>
<entry>
<title>tor-dirserver: Rename `doc_id` to `docid`</title>
<updated>2026-01-19T10:01:59Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T14:53:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0ba6540a84dc6ee15b79cdb49137fa659f4a4de8'/>
<id>urn:sha1:0ba6540a84dc6ee15b79cdb49137fa659f4a4de8</id>
<content type='text'>
Because we went with `docid` in the database (due to `rowid`), it is
only natural to call the code variables `docid` too.
</content>
</entry>
<entry>
<title>tor-dirserver: Rename sha256 to docid in schema</title>
<updated>2026-01-19T10:01:59Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T14:50:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=30d43c6384c57c7f90dbac7f40d496143cec6102'/>
<id>urn:sha1:30d43c6384c57c7f90dbac7f40d496143cec6102</id>
<content type='text'>
This commit renames the sha256 column to docid for the reason that we
agreed upon making the schema visible to all modules, so if we were to
encapsulate docid properly, this change is only natural.
</content>
</entry>
<entry>
<title>database: Introduce DocumentId</title>
<updated>2026-01-19T10:01:59Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T14:33:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2e0bf76a2878e7f9979dcac4bebe5b986596d6aa'/>
<id>urn:sha1:2e0bf76a2878e7f9979dcac4bebe5b986596d6aa</id>
<content type='text'>
This commit introduces a new type in the database module named
`DocumentId` for abstracting the underlying content-addressable hash
algorithm we are using.
</content>
</entry>
<entry>
<title>tor-dirserver: Small pre-merge fixes</title>
<updated>2026-01-15T10:59:00Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-15T10:59:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4c2ce57374d88e4f34c60daac212247415a9d6d7'/>
<id>urn:sha1:4c2ce57374d88e4f34c60daac212247415a9d6d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirserver: Change store_insert logic</title>
<updated>2026-01-15T10:49:46Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-07T15:44:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ce89fc3f0763aed7d3d448129e480aa63fd2ebca'/>
<id>urn:sha1:ce89fc3f0763aed7d3d448129e480aa63fd2ebca</id>
<content type='text'>
This commit modifies the database::store_insert logic to accept an
iterator of the encodings to store the document in, instead of encoding
it with all encodings we support.
</content>
</entry>
<entry>
<title>tor-dirmirror: Handle unparsable certificates</title>
<updated>2026-01-15T10:49:46Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-07T13:50:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2b82763d8c5266cf308b2a978ed119e20ef12573'/>
<id>urn:sha1:2b82763d8c5266cf308b2a978ed119e20ef12573</id>
<content type='text'>
Instead of failing, add them to missing and query them again.
</content>
</entry>
<entry>
<title>tor-dirserver: Improve note on query performance</title>
<updated>2026-01-15T10:49:46Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-07T12:46:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f02b1c0d5bb77b42bd336711ff8483375ba81b49'/>
<id>urn:sha1:f02b1c0d5bb77b42bd336711ff8483375ba81b49</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirserver: Fix formulation</title>
<updated>2026-01-15T10:49:46Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-01-07T12:00:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7b00f9fcecf4fa627c514ff30e82588828cafa46'/>
<id>urn:sha1:7b00f9fcecf4fa627c514ff30e82588828cafa46</id>
<content type='text'>
</content>
</entry>
</feed>
