Skip to content

Commit

Permalink
farmer: Fix review comments (tracing errors).
Browse files Browse the repository at this point in the history
  • Loading branch information
shamil-gadelshin committed Jul 28, 2022
1 parent 8ec51dc commit fb1687f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/subspace-farmer/src/dsn.rs
Expand Up @@ -266,7 +266,7 @@ where
.unzip();

if let Err(err) = on_sync.on_pieces(pieces, piece_indexes).await {
error!("DSN sync process returned an error: {}", err);
error!(%err, "DSN sync process returned an error");
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions crates/subspace-farmer/src/single_plot_farm.rs
Expand Up @@ -716,7 +716,6 @@ struct VerifyingPlotter<RC> {
}

impl<RC: RpcClient> VerifyingPlotter<RC> {
//TODO: Optimize: parallel execution, batch execution.
/// Verifies pieces against the blockchain.
pub async fn verify_pieces_at_blockchain(
&self,
Expand Down Expand Up @@ -751,7 +750,7 @@ impl<RC: RpcClient> VerifyingPlotter<RC> {
if let Some(root) = root {
Ok(root)
} else {
error!(?piece_index, "No records root found for piece_index.");
error!(piece_index, "No records root found for piece_index.");

Err(PiecesVerificationError::NoRecordsRootFound)
}
Expand Down

0 comments on commit fb1687f

Please sign in to comment.