<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-guardmgr/src/sample.rs, branch arti-v1.1.3</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.3</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.3'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-01-27T14:16:41Z</updated>
<entry>
<title>"Fix" remaining unchecked-subtraction warnings.</title>
<updated>2023-01-27T14:16:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:20:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2127c6b0883cfeedb92c1c88ccff59d63acd22a5'/>
<id>urn:sha1:2127c6b0883cfeedb92c1c88ccff59d63acd22a5</id>
<content type='text'>
In both cases I think it's fine to panic; but it's best to do so
explicitly.
</content>
</entry>
<entry>
<title>Allow clippy::unchecked_duration_subtraction in tests</title>
<updated>2023-01-27T13:28:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:01:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6dd92843edf2bd4c58de62a0d562921e4191ada'/>
<id>urn:sha1:a6dd92843edf2bd4c58de62a0d562921e4191ada</id>
<content type='text'>
This panics on error, and we're fine with a panic on misbehavior in
tests.
</content>
</entry>
<entry>
<title>test lint blocks: Add many many automatically</title>
<updated>2022-12-12T18:00:30Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-12-12T17:58:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=125a455bdcca841931f33f83f206e57637ae85c4'/>
<id>urn:sha1:125a455bdcca841931f33f83f206e57637ae85c4</id>
<content type='text'>
This is precisely the result of running the rune in
maint/adhoc-add-lint-blocks.
</content>
</entry>
<entry>
<title>Merge branch 'remove_deadcode_allow' into 'main'</title>
<updated>2022-11-23T17:45:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-23T17:45:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e25ed00fd108a2a7e029e1bb3ef70f8db2069aba'/>
<id>urn:sha1:e25ed00fd108a2a7e029e1bb3ef70f8db2069aba</id>
<content type='text'>
guardmgr: Remove a now-unneeded "allow(dead_code)"

See merge request tpo/core/arti!862</content>
</entry>
<entry>
<title>GuardMgr: split Reachable::Unknown into Untried and Retriable</title>
<updated>2022-11-17T17:21:06Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-17T17:17:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6c5dd0569873bc29671a3debdf8080febfa11c65'/>
<id>urn:sha1:6c5dd0569873bc29671a3debdf8080febfa11c65</id>
<content type='text'>
There are two cases here, and we will want to log them
differently.

(By removing the "Unknown" variant entirely, we ensure that we
didn't miss any code that formerly checked for Unknown.)
</content>
</entry>
<entry>
<title>guardmgr: Remove a now-unneeded "allow(dead_code)"</title>
<updated>2022-11-16T14:22:23Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-16T14:22:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a1b3d895411dcf08fdec934e4db6b1057fc4f4d'/>
<id>urn:sha1:4a1b3d895411dcf08fdec934e4db6b1057fc4f4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>GuardSet: Add a method to report which bridge descs we want.</title>
<updated>2022-11-14T18:36:10Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-09T12:39:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0f4c7a477ac8e0d4a781d3be27250fc583404232'/>
<id>urn:sha1:0f4c7a477ac8e0d4a781d3be27250fc583404232</id>
<content type='text'>
</content>
</entry>
<entry>
<title>GuardMgr: remove redundant call to extend_sample_as_needed</title>
<updated>2022-11-10T17:11:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-08T17:28:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=11e83d8069c074cc899594528c277266595464e8'/>
<id>urn:sha1:11e83d8069c074cc899594528c277266595464e8</id>
<content type='text'>
Previously we would call extend_sample_as_needed in only two places,
one of which called the other unconditionally.  That's obviously not
necessary.

I've selected just one of them (`update_guardset_internal`) since it
fits better with the theme if that function.  I've added comments
explaining what is going on.

This commit also introduces a yes/no enum for "were any guards added
while extending this set". Formerly we had a boolean, but it got
passed around so many times that I think its intent became obscure.
</content>
</entry>
<entry>
<title>GuardMgr: rename n_primary_without_dir_info</title>
<updated>2022-11-10T17:11:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-08T17:09:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1d4db04e4e5c620dae2305dd5b1cb022a24a6ac2'/>
<id>urn:sha1:1d4db04e4e5c620dae2305dd5b1cb022a24a6ac2</id>
<content type='text'>
What this function actually does is return the number of primary
guards whose presence (by identity) is ambiguous in a current
universe.  The new name and documentation should help avoid
confusion.

The method's old name had led me astray when identifying whether it
should apply to bridges in one case.  This commit also removes the
corresponding `TODO pt-client`.
</content>
</entry>
<entry>
<title>GuardMgr: Fix build with bridge-client disabled.</title>
<updated>2022-11-08T13:10:15Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-04T20:10:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9fda8d17c4b65d0af9c6aee00bf10ebc68c907dd'/>
<id>urn:sha1:9fda8d17c4b65d0af9c6aee00bf10ebc68c907dd</id>
<content type='text'>
</content>
</entry>
</feed>
