Skip to content

Commit a951ba4

Browse files
authored
Move the graph generation to before abort (#56)
1 parent 4c3d6bd commit a951ba4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ pub fn run(mut config: Config) {
349349
compressor.stats.state_groups_changed
350350
);
351351

352+
if config.graphs {
353+
graphing::make_graphs(&state_group_map, new_state_group_map);
354+
}
355+
352356
if ratio > 1.0 {
353357
println!("This compression would not remove any rows. Exiting.");
354358
return;
@@ -382,10 +386,6 @@ pub fn run(mut config: Config) {
382386
new_state_group_map,
383387
);
384388
}
385-
386-
if config.graphs {
387-
graphing::make_graphs(&state_group_map, new_state_group_map);
388-
}
389389
}
390390

391391
/// Produce SQL code to carry out changes to database.

0 commit comments

Comments
 (0)