|
@@ -46,8 +46,8 @@ where
|
|
for result in rdr.deserialize() {
|
|
for result in rdr.deserialize() {
|
|
let record: Record = match result {
|
|
let record: Record = match result {
|
|
Ok(record) => record,
|
|
Ok(record) => record,
|
|
- Err(e) => {
|
|
|
|
- eprintln!("bad record: {:?}", e);
|
|
|
|
|
|
+ Err(_e) => {
|
|
|
|
+ //eprintln!("bad record: {:?}", e);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -152,7 +152,6 @@ fn build_bootstrap_table(path: &str) -> Result<BootstrapTable, Box<dyn Error>> {
|
|
let configs = glob::glob(&format!("{}/shadow.data/hosts/*/user*.yaml", path))?;
|
|
let configs = glob::glob(&format!("{}/shadow.data/hosts/*/user*.yaml", path))?;
|
|
for config in configs {
|
|
for config in configs {
|
|
let config = config?;
|
|
let config = config?;
|
|
- println!("{:?}", config);
|
|
|
|
let config: Config = serde_yaml::from_reader(File::open(config)?)?;
|
|
let config: Config = serde_yaml::from_reader(File::open(config)?)?;
|
|
for conversation in config.conversations {
|
|
for conversation in config.conversations {
|
|
let key = (config.user.clone(), conversation.group);
|
|
let key = (config.user.clone(), conversation.group);
|