Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Jul 27, 2023
1 parent 506b3e5 commit 7494159
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mobile_verifier/src/rewarder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,10 @@ impl Rewarder {
return Ok(false);
}

if sqlx::query_scalar::<_, i64>(
"SELECT COUNT(*) FROM speedtests WHERE timestamp >= $1",
)
.bind(reward_period.end)
.fetch_one(&self.pool)
.await?
if sqlx::query_scalar::<_, i64>("SELECT COUNT(*) FROM speedtests WHERE timestamp >= $1")
.bind(reward_period.end)
.fetch_one(&self.pool)
.await?
== 0
{
tracing::info!("No speedtests found past reward period");
Expand Down

0 comments on commit 7494159

Please sign in to comment.