Skip to content

Commit 0c14939

Browse files
committed
f - handle simulation shutdown and add docs
1 parent 860915a commit 0c14939

File tree

4 files changed

+179
-96
lines changed

4 files changed

+179
-96
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sim-cli/src/parsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub async fn create_simulation_with_network(
247247
channels.clone(),
248248
tasks.clone(),
249249
vec![],
250-
shutdown_trigger.clone(),
250+
(shutdown_trigger.clone(), shutdown_listener.clone()),
251251
)
252252
.map_err(|e| SimulationError::SimulatedNetworkError(format!("{:?}", e)))?,
253253
));

simln-lib/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ tokio-util = { version = "0.7.13", features = ["rt"] }
3636

3737
[dev-dependencies]
3838
ntest = "0.9.0"
39-
mockall = "0.13.1"
39+
mockall = "0.13.1"
40+
futures = "0.3.31"

0 commit comments

Comments
 (0)