Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Merge 92c8cc2 into 3d241e5
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Apr 8, 2021
2 parents 3d241e5 + 92c8cc2 commit 51c4eba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/section_info/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,19 @@ pub struct SectionInfo {
pub pk_set: ReplicaPublicKeySet,
/// Section elders.
pub elders: BTreeMap<XorName, SocketAddr>,
/// Whether the section is allowed to taking new joining node.
pub joins_allowed: bool,
}

impl fmt::Debug for SectionInfo {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"SectionInfo {{ prefix: {:?}, pk_set: PkSet {{ public_key: {:?} }}, elders: {:?} }}",
"SectionInfo {{ prefix: {:?}, pk_set: PkSet {{ public_key: {:?} }}, elders: {:?}, joins_allowed: {:?}}}",
self.prefix,
self.pk_set.public_key(),
self.elders
self.elders,
self.joins_allowed
)
}
}
Expand Down

0 comments on commit 51c4eba

Please sign in to comment.