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.
This commit is contained in:
behzad nouri
2021-11-10 21:19:03 +00:00
committed by GitHub
parent fa7b5ef750
commit 5fb0ab9d00
4 changed files with 47 additions and 118 deletions

View File

@ -148,14 +148,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();
})
}