Skip to content

Commit

Permalink
Summonerd: strike (and log) on timeouts as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cronokirby committed Oct 23, 2023
1 parent 9627e7c commit 781f196
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/summonerd/src/coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ impl ContributionHandler {
{
Ok(Ok(_)) => Ok(()),
Err(_) => {
tracing::info!("timeout when asking for contribution");
tracing::info!("STRIKE (timeout)");
self.storage.strike(&contributor).await?;
Ok(())
}
Ok(Err(e)) => Err(e),
}
}

#[tracing::instrument(skip(self, participant))]
#[tracing::instrument(skip_all)]
async fn contribute_inner<P: Phase>(
&mut self,
contributor: Address,
Expand Down Expand Up @@ -104,6 +105,7 @@ impl ContributionHandler {
return Ok(());
}
}
tracing::info!("STRIKE (invalid or partial contribution)");
self.storage.strike(&contributor).await?;
return Ok(());
}
Expand Down

0 comments on commit 781f196

Please sign in to comment.