<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirmgr/src/err.rs, branch arti-v1.2.5</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.5</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.5'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-12-13T17:02:45Z</updated>
<entry>
<title>tor-persist: Provide FsMistrustErrorExt, and use it</title>
<updated>2023-12-13T17:02:45Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-12-07T16:18:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=76bd3c0f4dc5886dbc4a11304a87661d1252b829'/>
<id>urn:sha1:76bd3c0f4dc5886dbc4a11304a87661d1252b829</id>
<content type='text'>
This code needs fs_mistrust::Error and tor_error::ErrorKind.  I think
we probably don't want fs_mistrust to depend on tor_error or vice
versa.

tor_persist is approximately the place where these two threads of
thought come together, and it's currently the lowest place where this
is needed.

Use it in tor-dirmgr too, which is currently the other place that
embodies this knowledge about fs_mistrust::Error.
</content>
</entry>
<entry>
<title>tor-dirmgr: impl AsRef&lt;dyn Error&gt; for Error</title>
<updated>2022-11-04T19:01:24Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-02T18:59:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9424b0970d29f16713059a859c633f7c2691f2c2'/>
<id>urn:sha1:9424b0970d29f16713059a859c633f7c2691f2c2</id>
<content type='text'>
This allows use with tor_error::Report.
</content>
</entry>
<entry>
<title>`TaskSchedule`: give error on `sleep*()` if last handle is dropped</title>
<updated>2022-09-07T13:22:38Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-09-07T13:22:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=86e479ae1360a0cea3ad8020653c59f6aa52d338'/>
<id>urn:sha1:86e479ae1360a0cea3ad8020653c59f6aa52d338</id>
<content type='text'>
This fixes an busy-loop.

When the last `TaskHandle` on a `TaskSchedule` is dropped, the
schedule is permanently canceled: whatever operation it was
scheduling should no longer be performed.  But our code was broken:
the `sleep()` and `sleep_until_wallclock()` functions don't verify
whether the handles are dropped or not.

This breakage caused an CPU-eating busy-loop in
`sleep_until_wallclock`.

With this patch, we now return a `Result&lt;(), SleepError&gt;` from these
functions.

Fixes #572.
</content>
</entry>
<entry>
<title>Use anonymize_home() when displaying various messages.</title>
<updated>2022-08-31T13:38:35Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-26T16:38:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a9f19b00453ffd19fddb724f2b75f32ea1f37edb'/>
<id>urn:sha1:a9f19b00453ffd19fddb724f2b75f32ea1f37edb</id>
<content type='text'>
Closes #555
</content>
</entry>
<entry>
<title>dirmgr: Add a helper to create LockFile errors.</title>
<updated>2022-07-18T14:10:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-18T14:10:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3c424c82d7e2873bde728b74ab6650988b79229b'/>
<id>urn:sha1:3c424c82d7e2873bde728b74ab6650988b79229b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dirmgr: Make UnrecognizedSchema more helpful</title>
<updated>2022-07-14T13:53:17Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-14T13:53:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c983987782aad18d3745ff2a0227a11027793191'/>
<id>urn:sha1:c983987782aad18d3745ff2a0227a11027793191</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dirmgr: Clarify disk IO errors.</title>
<updated>2022-07-14T13:27:29Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-14T13:27:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d1e9d4ce8432698c636f6cd402ebc8600f68ef29'/>
<id>urn:sha1:d1e9d4ce8432698c636f6cd402ebc8600f68ef29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dirmgr: style edits to error messages.</title>
<updated>2022-07-14T12:40:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-14T12:40:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c1101f13f361ed3ee909983dd8a5356d800d3f0d'/>
<id>urn:sha1:c1101f13f361ed3ee909983dd8a5356d800d3f0d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not include error source() in display() format.</title>
<updated>2022-06-21T18:14:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-21T18:14:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=08d9bbf33b9fff8aa33a823422aa4e323137be07'/>
<id>urn:sha1:08d9bbf33b9fff8aa33a823422aa4e323137be07</id>
<content type='text'>
According to doc/Errors.md, and in keeping with current best
practices, we should not include display an error's `source()` as
part of that error's display method.  Instead, we should let the
caller decide to call source() and display that error in turn.

Part of #323.
</content>
</entry>
<entry>
<title>DirMgr:: Remove Error::NoChange as redundant.</title>
<updated>2022-05-25T12:58:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-05-25T12:58:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0caa5bcba5c3be8aca2fb90331a830d1a22f5e22'/>
<id>urn:sha1:0caa5bcba5c3be8aca2fb90331a830d1a22f5e22</id>
<content type='text'>
Now that the relevant functions now report changed/not-changed
status via a boolean out-parameter (see !527), there's no reason to
have a separate NoChanged error case.

Closes #484.
</content>
</entry>
</feed>
