dirclient: Collect and expose peer information from errors.
This commit refactors the dirclient error type into two cases: errors when constructing a circuit, and errors that occur once we already have a one-hop circuit. The latter can usually be attributed to the specific cache we're talking to. This commit also adds a function to expose the information about which directory gave us the info.
Showing
- crates/tor-dirclient/src/err.rs 67 additions, 11 deletionscrates/tor-dirclient/src/err.rs
- crates/tor-dirclient/src/lib.rs 89 additions, 42 deletionscrates/tor-dirclient/src/lib.rs
- crates/tor-dirclient/src/request.rs 2 additions, 1 deletioncrates/tor-dirclient/src/request.rs
- crates/tor-dirclient/src/response.rs 4 additions, 4 deletionscrates/tor-dirclient/src/response.rs
- doc/semver_status.md 3 additions, 0 deletionsdoc/semver_status.md
Loading
Please register or sign in to comment