From 2710d376b1b11afe9a5490b64c66fa1a6204f431 Mon Sep 17 00:00:00 2001 From: Luka Borkovic Date: Fri, 4 Oct 2024 16:12:41 +0200 Subject: [PATCH] Fix a permanently held lock. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 28cbf29..cf0d808 100755 --- a/src/main.rs +++ b/src/main.rs @@ -767,6 +767,7 @@ async fn track_slot_avail_task(state: Arc) -> 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; }