* removes redundant args from Shredder::try_recovery (#21226)
Shredder::try_recovery is already taking a Vec<Shred> as an argument. All the
other arguments are embedded in the shreds, and are so redundant.
(cherry picked from commit 5fb0ab9d00
)
# Conflicts:
# ledger/src/shred.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
This commit is contained in:
@@ -151,14 +151,7 @@ fn bench_shredder_decoding(bencher: &mut Bencher) {
|
||||
true, // is_last_in_slot
|
||||
);
|
||||
bencher.iter(|| {
|
||||
Shredder::try_recovery(
|
||||
coding_shreds[..].to_vec(),
|
||||
symbol_count,
|
||||
symbol_count,
|
||||
0, // first index
|
||||
1, // slot
|
||||
)
|
||||
.unwrap();
|
||||
Shredder::try_recovery(coding_shreds[..].to_vec()).unwrap();
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user