Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Avoid copies #11451

Merged
merged 2 commits into from
Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions util/journaldb/src/overlayrecentdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use std::{
collections::{HashMap, hash_map::Entry},
io,
sync::Arc,
time::Duration,
};

use ethereum_types::H256;
Expand Down Expand Up @@ -294,7 +293,7 @@ impl JournalDB for OverlayRecentDB {
let pkey = &key[..DB_PREFIX_LEN];
self.backing
.get_by_prefix(self.column, &pkey)
.map(|b| b.to_vec())
.map(|b| b.into_vec())
})
}

Expand Down