Avoid cloning Vec<Entry> when calling entries_to_test_shreds() (#22093)
This commit is contained in:
committed by
GitHub
parent
2ab4f34c02
commit
b89cd8cd1a
@ -21,7 +21,7 @@ fn test_multiple_threads_insert_shred() {
|
||||
let threads: Vec<_> = (0..num_threads)
|
||||
.map(|i| {
|
||||
let entries = entry::create_ticks(1, 0, Hash::default());
|
||||
let shreds = blockstore::entries_to_test_shreds(entries, i + 1, 0, false, 0);
|
||||
let shreds = blockstore::entries_to_test_shreds(&entries, i + 1, 0, false, 0);
|
||||
let blockstore_ = blockstore.clone();
|
||||
Builder::new()
|
||||
.name("blockstore-writer".to_string())
|
||||
|
Reference in New Issue
Block a user