Skip to content

Commit

Permalink
Log details in case solution response sending resulted in failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed May 16, 2024
1 parent 6575cb2 commit 116fa68
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crates/subspace-farmer/src/cluster/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,21 @@ where
while let Some(notification) = subscription.next().await {
debug!(?notification, "Solution notification");

let slot = notification.solution_response.slot_number;
let public_key = notification.solution_response.solution.public_key;
let sector_index = notification.solution_response.solution.sector_index;

if let Err(error) = node_client
.submit_solution_response(notification.solution_response)
.await
{
warn!(%error, "Failed to send solution response");
warn!(
%error,
%slot,
%public_key,
%sector_index,
"Failed to send solution response"
);
}
}

Expand Down

0 comments on commit 116fa68

Please sign in to comment.