Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaylan committed Feb 9, 2025
1 parent 47420db commit 6f567bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions simulator/generation/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,21 @@ impl Interactions {
}
select.shadow(env);
}
Property::DropSelect { table, queries, select } => {
let drop = Query::Drop(Drop { table: table.clone() });
Property::DropSelect {
table,
queries,
select,
} => {
let drop = Query::Drop(Drop {
table: table.clone(),
});

drop.shadow(env);
for query in queries {
query.shadow(env);
}
select.shadow(env);
},
}
}
for interaction in property.interactions() {
match interaction {
Expand Down
2 changes: 1 addition & 1 deletion simulator/runner/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl SimulatorEnv {

let (create_percent, read_percent, write_percent, delete_percent, drop_percent) = {
let total = 100.0;

let read_percent = rng.gen_range(0.0..=total);
let write_percent = total - read_percent;

Expand Down

0 comments on commit 6f567bd

Please sign in to comment.