don't unwrap if config cant send

This commit is contained in:
Bryan Stitt 2023-07-21 13:28:08 -07:00
parent a68d0d60b7
commit e6666d92d8

@ -123,8 +123,10 @@ impl ProxydSubCommand {
// TODO: print the differences // TODO: print the differences
// TODO: first run seems to always see differences. why? // TODO: first run seems to always see differences. why?
info!("config @ {:?} changed", top_config_path); info!("config @ {:?} changed", top_config_path);
config_sender.send(new_top_config.clone()).unwrap(); match config_sender.send(new_top_config.clone()) {
current_config = new_top_config; Ok(()) => current_config = new_top_config,
Err(err) => error!(?err, "unable to apply new config"),
}
} }
} }
Err(err) => { Err(err) => {