dont sleep at start

that was a gross fix anyways
This commit is contained in:
Bryan Stitt 2023-10-12 16:25:26 -07:00
parent 3b9c04a9e2
commit f73fd66b89
2 changed files with 2 additions and 4 deletions

View File

@ -585,6 +585,7 @@ impl App {
} }
} }
// TODO: add a min time between config changes
yield_now().await; yield_now().await;
} }

View File

@ -161,10 +161,7 @@ impl ProxydSubCommand {
// give 30 seconds for the db to connect. if it does not connect, it will keep retrying // give 30 seconds for the db to connect. if it does not connect, it will keep retrying
} }
info!("waiting 30 seconds for warm up"); info!("waiting up to 30 seconds for a head block");
sleep(Duration::from_secs(30)).await;
info!("waiting up to 30 more seconds for a head block");
let max_wait_until = Instant::now() + Duration::from_secs(30); let max_wait_until = Instant::now() + Duration::from_secs(30);
loop { loop {
select! { select! {