diff options
Diffstat (limited to 'src/membership.rs')
-rw-r--r-- | src/membership.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/membership.rs b/src/membership.rs index 6f6dd47d..89b0fd67 100644 --- a/src/membership.rs +++ b/src/membership.rs @@ -69,6 +69,7 @@ pub struct NetworkConfig { pub struct NetworkConfigEntry { pub datacenter: String, pub n_tokens: u32, + pub tag: String, } pub struct System { @@ -248,7 +249,8 @@ fn read_network_config(metadata_dir: &PathBuf) -> Result<NetworkConfig, Error> { let mut net_config_bytes = vec![]; file.read_to_end(&mut net_config_bytes)?; - let net_config = rmp_serde::decode::from_read_ref(&net_config_bytes[..])?; + let net_config = rmp_serde::decode::from_read_ref(&net_config_bytes[..]) + .expect("Unable to parse network configuration file (has version format changed?)."); Ok(net_config) } |