Skip to content

Commit

Permalink
fix storage error display trait
Browse files Browse the repository at this point in the history
  • Loading branch information
RequescoS committed Jan 3, 2024
1 parent c23208b commit 690878c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nft_ingester/src/mplx_updates_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl MplxAccsProcessor {
if number_of_tasks + tasks_to_insert.len() > MAX_BUFFERED_TASKS_TO_TAKE {
tasks_to_insert.extend(
tasks_buffer
.drain(0..MAX_BUFFERED_TASKS_TO_TAKE.saturating_sub( tasks_to_insert.len()))
.drain(0..MAX_BUFFERED_TASKS_TO_TAKE.saturating_sub(tasks_to_insert.len()))
.collect::<Vec<Task>>(),
);
} else {
Expand Down
2 changes: 1 addition & 1 deletion rocks-db/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ pub enum StorageError {

impl std::fmt::Display for StorageError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "storage error")
write!(f, "storage error: {:?}", self)
}
}

0 comments on commit 690878c

Please sign in to comment.