File tree Expand file tree Collapse file tree 7 files changed +405
-371
lines changed Expand file tree Collapse file tree 7 files changed +405
-371
lines changed Original file line number Diff line number Diff line change @@ -719,10 +719,11 @@ fn reopen_database(env: &mut SimulatorEnv) {
719
719
match env. type_ {
720
720
SimulationType :: Differential => {
721
721
for _ in 0 ..num_conns {
722
- env. connections . push ( SimConnection :: SQLiteConnection (
723
- rusqlite:: Connection :: open ( env. get_db_path ( ) )
724
- . expect ( "Failed to open SQLite connection" ) ,
725
- ) ) ;
722
+ env. connections
723
+ . push ( Arc :: new ( Mutex :: new ( SimConnection :: SQLiteConnection (
724
+ rusqlite:: Connection :: open ( env. get_db_path ( ) )
725
+ . expect ( "Failed to open SQLite connection" ) ,
726
+ ) ) ) ) ;
726
727
}
727
728
}
728
729
SimulationType :: Default | SimulationType :: Doublecheck => {
@@ -747,7 +748,9 @@ fn reopen_database(env: &mut SimulatorEnv) {
747
748
748
749
for _ in 0 ..num_conns {
749
750
env. connections
750
- . push ( SimConnection :: LimboConnection ( env. db . connect ( ) . unwrap ( ) ) ) ;
751
+ . push ( Arc :: new ( Mutex :: new ( SimConnection :: LimboConnection (
752
+ env. db . connect ( ) . unwrap ( ) ,
753
+ ) ) ) ) ;
751
754
}
752
755
}
753
756
} ;
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ fn run_simulation(
589
589
590
590
fn run_simulation_default (
591
591
env : Arc < Mutex < SimulatorEnv > > ,
592
- plans : & mut [ InteractionPlan ] ,
592
+ plans : Arc < Vec < Arc < InteractionPlan > > > ,
593
593
last_execution : Arc < Mutex < Execution > > ,
594
594
) -> ExecutionResult {
595
595
tracing:: info!( "Executing database interaction plan..." ) ;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments