Skip to content

Commit

Permalink
Fix confusing piece getter error name
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Oct 18, 2024
1 parent 60de54c commit ef2c7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shared/subspace-data-retrieval/src/object_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub enum Error {

/// Piece getter couldn't find the piece
#[error("Piece {piece_index:?} was not found by piece getter")]
PieceGetterNotFound { piece_index: PieceIndex },
PieceNotFound { piece_index: PieceIndex },
}

/// Object fetcher for the Subspace DSN.
Expand Down Expand Up @@ -596,7 +596,7 @@ impl ObjectFetcher {
"Piece not found during object assembling"
);

Err(Error::PieceGetterNotFound {
Err(Error::PieceNotFound {
piece_index: mapping_piece_index,
})?
}
Expand Down
2 changes: 1 addition & 1 deletion shared/subspace-data-retrieval/src/piece_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
}
Ok(None) => {
trace!(?piece_index, "Piece not found");
Err(Error::PieceGetterNotFound {
Err(Error::PieceNotFound {
piece_index: *piece_index,
}
.into())
Expand Down

0 comments on commit ef2c7f2

Please sign in to comment.