sleep before first config reload

This commit is contained in:
Bryan Stitt 2023-10-11 00:52:58 -07:00
parent 91a9d62ce1
commit a3812d8c5f

@ -107,6 +107,9 @@ impl ProxydSubCommand {
// TODO: move this to a helper function
thread::spawn(move || loop {
// give the app some time to start before changing configs for the first time
thread::sleep(Duration::from_secs(60));
match fs::read_to_string(&top_config_path) {
Ok(new_top_config) => {
match toml::from_str::<TopConfig>(&new_top_config) {