Remove lock around JsonRpcRequestProcessor (#10417)

automerge
This commit is contained in:
Greg Fitzgerald
2020-06-07 21:54:03 -06:00
committed by GitHub
parent 0645a0c96d
commit af8c21c559
4 changed files with 106 additions and 216 deletions

View File

@@ -253,6 +253,12 @@ pub struct ClusterInfo {
start_time: u64,
}
impl Default for ClusterInfo {
fn default() -> Self {
Self::new_with_invalid_keypair(ContactInfo::default())
}
}
#[derive(Default, Clone)]
pub struct Locality {
/// The bounds of the neighborhood represented by this locality