Skip to content

Commit

Permalink
Merge branch 'main' into collin/build
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Jun 23, 2023
2 parents 700df9e + c5aeed9 commit 97a121e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cork/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub async fn start_approved_cellar_cache_thread() -> JoinHandle<()> {
tokio::spawn(async move {
let mut fail_count = 0;
loop {
tokio::time::sleep(query_period).await;
if let Err(err) = refresh_approved_cellars().await {
fail_count += 1;
error!(
Expand All @@ -60,6 +59,8 @@ pub async fn start_approved_cellar_cache_thread() -> JoinHandle<()> {
} else {
fail_count = 0;
}

tokio::time::sleep(query_period).await;
}
})
}
4 changes: 2 additions & 2 deletions src/cork/proposals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ pub async fn start_scheduled_cork_proposal_polling_thread() -> JoinHandle<()> {

tokio::spawn(async move {
loop {
tokio::time::sleep(query_period).await;

debug!("polling for new approved scheduled cork proposals");
state
.update_last_observed_height(config.cosmos.grpc.clone())
Expand All @@ -67,6 +65,8 @@ pub async fn start_scheduled_cork_proposal_polling_thread() -> JoinHandle<()> {
err
);
}

tokio::time::sleep(query_period).await;
}
})
}
Expand Down

0 comments on commit 97a121e

Please sign in to comment.