Skip to content

Commit

Permalink
Fix a permanently held lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
luka-ethernal committed Oct 4, 2024
1 parent 59022fa commit 3a9383e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ async fn track_slot_avail_task(state: Arc<AppState>) -> Result<()> {
let mut slot_block_head = SLOT_BLOCK_HEAD.write().await;
tracing::info!("Beacon mapping: {slot}:{bl}");
*slot_block_head = Some((slot, bl as u64, h, timestamp));
drop(slot_block_head);

tokio::time::sleep(Duration::from_secs(60 * 5)).await;
}
Expand Down

0 comments on commit 3a9383e

Please sign in to comment.