<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdir/src/lib.rs, branch arti-v2.5.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.5.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.5.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-06-22T17:00:31Z</updated>
<entry>
<title>Remove renaming aliases for MicrodescAndHash</title>
<updated>2026-06-22T17:00:31Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-16T19:36:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0d697eccea93dc45d781b2f5ece917aa057000f2'/>
<id>urn:sha1:0d697eccea93dc45d781b2f5ece917aa057000f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Break Microdesc up into Microdesc and MicrodescAndHash</title>
<updated>2026-06-22T16:59:20Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-16T19:32:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=479acbf246db677d4139bca317cb0e3d1fd9340a'/>
<id>urn:sha1:479acbf246db677d4139bca317cb0e3d1fd9340a</id>
<content type='text'>
The Microdesc type having a copy of the document hash was always
weird, and it's weirder now that there's all these parse2 types that
don't have it and parse2 derives on Microdesc that don't touch it.

Make a new type for the descriptor and its hash.

Use deref to arrange that the new type works almost like the old one.

Adjust the use lines in the dependencies to temporarily import
MicrodescAndHash as Microdesc.
</content>
</entry>
<entry>
<title>pick_n_weighted: change variable names for clarity</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-17T21:48:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b6ab42b604f326b86090fa627168b4198c6eeb95'/>
<id>urn:sha1:b6ab42b604f326b86090fa627168b4198c6eeb95</id>
<content type='text'>
"iter" wasn't an iterator per se. Changed it to "sampled_items", and
renamed other variables to call the items more generically "items" than
"relay", since the mixed usage was a little confusing, and the function
doesn't really know anything about relays.
</content>
</entry>
<entry>
<title>NetDir::pick_n_relays and pick_n_weighted: clarify/fix docs re zero-weight items</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-16T21:22:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d1a2f905d50b10c849ba39f984f5436b05e37341'/>
<id>urn:sha1:d1a2f905d50b10c849ba39f984f5436b05e37341</id>
<content type='text'>
</content>
</entry>
<entry>
<title>NetDir::pick_n_weighted: fix doc-comment to not refer to</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-16T21:12:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=17bb7b1b7ce80ffcc73a31e3a2a586a722f047da'/>
<id>urn:sha1:17bb7b1b7ce80ffcc73a31e3a2a586a722f047da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename NetDir::pick_n_filtered_weighted -&gt; pick_n_weighted</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-16T21:08:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=495138dbcee039d0c539bf0b26c4bbc9e269eb17'/>
<id>urn:sha1:495138dbcee039d0c539bf0b26c4bbc9e269eb17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pick_n_filtered_weighted: move warnings logs to caller</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-15T23:34:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=06233fce3168706d96874a28b72147e6424fe5cb'/>
<id>urn:sha1:06233fce3168706d96874a28b72147e6424fe5cb</id>
<content type='text'>
We have more useful context in the caller, `pick_n_relays`.
</content>
</entry>
<entry>
<title>pick_n_filtered_weighted: test and fix for rand 0.10 behavior</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-15T23:03:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=00730bb616beddb68d4d40092e0f36d2e1dfbbdc'/>
<id>urn:sha1:00730bb616beddb68d4d40092e0f36d2e1dfbbdc</id>
<content type='text'>
This tests our implementation of sampling to ensure the behavior is
as-expected. It also updates the implementation so that the tests pass
(It was broken when updating to rand 0.10; see
https://gitlab.torproject.org/tpo/core/arti/-/work_items/1907#note_3426398).

This removes the direct testing of
`rand::IndexedRandom::sample_weighted`, since this is now an
impplementation detail of `pick_n_filtered_weighted`, which is itself
tested.

Verified that this fixes the case of sometimes not being able to select
a Guard in integration tests.
&lt;https://gitlab.torproject.org/tpo/core/chutney/-/work_items/40057#note_3426299&gt;
&lt;https://gitlab.torproject.org/tpo/core/arti/-/work_items/1907#note_3408157&gt;
&lt;https://gitlab.torproject.org/tpo/core/arti/-/work_items/2209&gt;
</content>
</entry>
<entry>
<title>NetDir::pick_n_relays: move implementation to a testable helper</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-15T22:12:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3e48aa7327ad5336bae0aacc26020c6078498641'/>
<id>urn:sha1:3e48aa7327ad5336bae0aacc26020c6078498641</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cargo fmt</title>
<updated>2026-06-17T21:54:20Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-06-15T21:59:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5e8bf486b768280947bc02f5095d6333e9f925c8'/>
<id>urn:sha1:5e8bf486b768280947bc02f5095d6333e9f925c8</id>
<content type='text'>
</content>
</entry>
</feed>
