Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
th7nder committed Nov 1, 2024
1 parent 413cbd3 commit bc6301b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions cli/polka-storage-provider/server/src/pipeline/types.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use std::path::PathBuf;

use primitives_commitment::{
piece::PieceInfo,
Commitment,
};
use primitives_commitment::{piece::PieceInfo, Commitment};
use primitives_proofs::{DealId, SectorNumber};
use serde::{Deserialize, Serialize};
use storagext::types::market::DealProposal;
Expand Down
3 changes: 2 additions & 1 deletion lib/polka-storage-proofs/src/porep/sealer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ impl Sealer {
) -> Result<Vec<PieceInfo>, PoRepError> {
let mut result_pieces = current_pieces.clone();
let sector_size: UnpaddedBytesAmount = self.porep_config.sector_size.into();
let padding_pieces = filler_pieces(sector_size - UnpaddedBytesAmount(sector_occupied_space));
let padding_pieces =
filler_pieces(sector_size - UnpaddedBytesAmount(sector_occupied_space));
result_pieces.extend(padding_pieces.into_iter().map(|p| {
PieceInfo::from_filecoin_piece_info(p, primitives_commitment::CommitmentKind::Piece)
}));
Expand Down

0 comments on commit bc6301b

Please sign in to comment.