Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed May 16, 2024
1 parent 288a01b commit ed7b420
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ed7b420

Please sign in to comment.