Fixed some linter complaints
This commit is contained in:
+5
-3
@@ -195,8 +195,10 @@ async fn simulation_loop(
|
|||||||
) {
|
) {
|
||||||
let mut rng = StdRng::from_seed(OsRng.gen());
|
let mut rng = StdRng::from_seed(OsRng.gen());
|
||||||
loop {
|
loop {
|
||||||
let mut metrics = DynamoDbSimulationMetrics::default();
|
let mut metrics = DynamoDbSimulationMetrics {
|
||||||
metrics.timestamp = Utc::now();
|
timestamp: Utc::now(),
|
||||||
|
..DynamoDbSimulationMetrics::default()
|
||||||
|
};
|
||||||
|
|
||||||
let simulation_time = time!(match {
|
let simulation_time = time!(match {
|
||||||
if read_only {
|
if read_only {
|
||||||
@@ -280,7 +282,7 @@ async fn scan_all_partition_keys(
|
|||||||
let partition_keys = resp
|
let partition_keys = resp
|
||||||
.items()
|
.items()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.into_iter()
|
.iter()
|
||||||
.map(|attribute| {
|
.map(|attribute| {
|
||||||
attribute
|
attribute
|
||||||
.values()
|
.values()
|
||||||
|
|||||||
Reference in New Issue
Block a user