Skip to content
Snippets Groups Projects
Commit 166af2c3 authored by Ian Jackson's avatar Ian Jackson
Browse files

Fix error return type of AuthorityBuilder

parent 0036b916
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
use derive_builder::Builder;
use serde::Deserialize;
use tor_config::ConfigBuildError;
use tor_llcrypto::pk::rsa::RsaIdentity;
/// A single authority that signs a consensus directory.
......@@ -13,6 +14,7 @@ use tor_llcrypto::pk::rsa::RsaIdentity;
// we want our authorities format to be future-proof against adding new info
// about each authority.
#[derive(Deserialize, Debug, Clone, Builder, Eq, PartialEq)]
#[builder(build_fn(error = "ConfigBuildError"))]
#[builder(derive(Deserialize))]
pub struct Authority {
/// A memorable nickname for this authority.
......
......@@ -42,6 +42,10 @@ BREAKING: Added `ChanProvenance` to `ChanMgr::get_or_launch`.
MODIFIED: Added a new variant in tor_circmgr::Error.
BREAKING: Made internal scheduled entry points non-public.
### tor-dirmgr
BREAKING: AuthorityBuilder::build now throws ConfigBuildError, not a custom error type
### tor-guardmgr
MODIFIED: New functions to get estimated clock skew.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment