Skip to content

Commit

Permalink
fix redb
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Aug 29, 2024
1 parent 0bab63c commit 06490d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon_node/store/src/database/redb_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl<E: EthSpec> Redb<E> {
&[column.into()],
key.value().len() as u64,
);
K::from_bytes(k.value())
K::from_bytes(key.value())
})
};

Expand Down Expand Up @@ -260,7 +260,7 @@ impl<E: EthSpec> Redb<E> {
Ok((key, _)) => predicate(key.value(), prefix.as_slice()),
Err(_) => false,
})
.map(|res| {
.map(move |res| {
let (key, value) = res?;
metrics::inc_counter_vec(&metrics::DISK_DB_READ_COUNT, &[column.into()]);
metrics::inc_counter_vec_by(
Expand Down

0 comments on commit 06490d4

Please sign in to comment.