From ed7b420b62cf9457e8f660fb5f9f9f9afd1d2976 Mon Sep 17 00:00:00 2001 From: yihau Date: Thu, 16 May 2024 23:21:05 +0800 Subject: [PATCH] update comments --- ledger/src/blockstore.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index d1cc26bd742ff4..c9109656fae32c 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -10979,7 +10979,10 @@ pub mod tests { let slot = shreds[0].slot(); // Grab this lock to block `get_slot_entries` before it fetches completed datasets // and then mark the slot as dead, but full, by inserting carefully crafted shreds. - #[allow(clippy::readonly_write_lock)] // Possible clippy bug, the lock is unused so clippy lint shouldn't care about read vs. write lock + + #[allow(clippy::readonly_write_lock)] + // Possible clippy bug, the lock is unused so clippy shouldn't care + // about read vs. write lock let _lowest_cleanup_slot = blockstore.lowest_cleanup_slot.write().unwrap(); blockstore.insert_shreds(shreds, None, false).unwrap();