Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Feb 5, 2024
1 parent 0b6ba32 commit 7a1e7c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion iot_verifier/src/poc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl Poc {
}

// update the last witness timestamp for any witness which has successfully passed regular validations
if witnesses_to_update.len() > 0 {
if !witnesses_to_update.is_empty() {
LastWitness::bulk_update_last_timestamps(&self.pool, witnesses_to_update).await?
};

Expand Down
1 change: 0 additions & 1 deletion iot_verifier/src/runner.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::last_witness::LastWitness;
use crate::{
gateway_cache::GatewayCache,
hex_density::HexDensityMap,
Expand Down

0 comments on commit 7a1e7c4

Please sign in to comment.