next-shred-index is already readily available from returned data shreds.
The commit simplifies the api for upcoming changes to erasure coding
schema which will require explicit tracking of indices for coding shreds
as well as data shreds.
(cherry picked from commit 89d66c3210
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
This commit is contained in:
@@ -336,7 +336,7 @@ pub(crate) mod tests {
|
||||
})
|
||||
.take(5)
|
||||
.collect();
|
||||
let (mut data_shreds, _coding_shreds, _last_shred_index) = shredder.entries_to_shreds(
|
||||
let (mut data_shreds, _coding_shreds) = shredder.entries_to_shreds(
|
||||
keypair,
|
||||
&entries,
|
||||
true, // is_last_in_slot
|
||||
|
Reference in New Issue
Block a user