Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris committed Feb 18, 2025
1 parent f02325a commit 9022f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/src/linear/filebacked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl ReadableStorage for FileBacked {
}

fn read_cached_node(&self, addr: LinearAddress, mode: &'static str) -> Option<SharedNode> {
let mut guard = self.cache.read().expect("poisoned lock");
let guard = self.cache.read().expect("poisoned lock");
let cached = guard.get(&addr).cloned();
counter!("firewood.cache.node", "mode" => mode, "type" => if cached.is_some() { "hit" } else { "miss" })
.increment(1);
Expand Down

0 comments on commit 9022f4f

Please sign in to comment.