fix can_decode num count

This commit is contained in:
weisd
2024-12-30 14:00:57 +08:00
parent 3fb689ebfa
commit 82799c3ac5
+1 -1
View File
@@ -588,7 +588,7 @@ impl ShardReader {
fn can_decode(&self, bufs: &[Option<Vec<u8>>]) -> bool {
let c = bufs.iter().filter(|v| v.is_some()).count();
if self.parity_block_count > 0 {
c > self.data_block_count
c >= self.data_block_count
} else {
c == self.data_block_count
}