Skip to content

Commit

Permalink
chore: cargo clippy, fixed validate_proof_with_age test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Sep 18, 2023
1 parent 5a0b575 commit 5944bd0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::Arc;
use std::time::Instant;

use anyhow::Result as AnyhowResult;
use chrono::{DateTime, Duration, Utc};
use chrono::{Duration, Utc};
use clap::Parser;
use hyper::StatusCode;
use ruint::Uint;
Expand Down
2 changes: 1 addition & 1 deletion src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ mod test {
use postgres_docker_utils::DockerContainerGuard;
use ruint::Uint;
use semaphore::Field;
use sqlx::types::chrono::DateTime;

use sqlx::Row;

use super::{Database, Options};
Expand Down
6 changes: 3 additions & 3 deletions src/task_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ impl TaskMonitor {
pending_identities_capacity,
scanning_window_size,
time_between_scans_seconds,
batch_deletion_timeout_seconds,
min_batch_deletion_size,
insert_identities_capacity,
batch_deletion_timeout_seconds: _,
min_batch_deletion_size: _,
insert_identities_capacity: _,
} = *options;

Self {
Expand Down
2 changes: 1 addition & 1 deletion src/task_monitor/tasks/mine_identities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::Arc;

use anyhow::{Context, Result as AnyhowResult};
use chrono::{DateTime, Utc};
use ethers::types::U256;

use tracing::{info, instrument};

use crate::contracts::{IdentityManager, SharedIdentityManager};
Expand Down
6 changes: 3 additions & 3 deletions tests/validate_proof_with_age.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ async fn validate_proof_with_age() -> anyhow::Result<()> {
let tree_depth: u8 = SUPPORTED_DEPTH as u8;
let batch_size = 3;

let (mock_chain, db_container, prover_map, micro_oz) =
let (mock_chain, db_container, insertion_prover_map, _deletion_prover_map, micro_oz) =
spawn_deps(initial_root, &[batch_size], &vec![], tree_depth).await?;

let prover_mock = &prover_map[&batch_size];
let prover_mock = &insertion_prover_map[&batch_size];

let port = db_container.port();
let db_url = format!("postgres://postgres:postgres@localhost:{port}/database");
Expand Down Expand Up @@ -155,7 +155,7 @@ async fn validate_proof_with_age() -> anyhow::Result<()> {
// Shutdown the app properly for the final time
shutdown();
app.await.unwrap();
for (_, prover) in prover_map.into_iter() {
for (_, prover) in insertion_prover_map.into_iter() {
prover.stop();
}
reset_shutdown();
Expand Down

0 comments on commit 5944bd0

Please sign in to comment.