diff --git a/src/main.rs b/src/main.rs index 3a992c7..e4ef971 100644 --- a/src/main.rs +++ b/src/main.rs @@ -195,8 +195,10 @@ async fn simulation_loop( ) { let mut rng = StdRng::from_seed(OsRng.gen()); loop { - let mut metrics = DynamoDbSimulationMetrics::default(); - metrics.timestamp = Utc::now(); + let mut metrics = DynamoDbSimulationMetrics { + timestamp: Utc::now(), + ..DynamoDbSimulationMetrics::default() + }; let simulation_time = time!(match { if read_only { @@ -280,7 +282,7 @@ async fn scan_all_partition_keys( let partition_keys = resp .items() .unwrap() - .into_iter() + .iter() .map(|attribute| { attribute .values()