removes redundant args from Shredder::try_recovery (backport #21226) (#22126)

* 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:
mergify[bot]
2021-12-27 21:02:33 +00:00
committed by GitHub
parent 1e1f383970
commit 039244417e
4 changed files with 47 additions and 118 deletions

View File

@@ -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();
})
}