Skip to content

Commit cbffec7

Browse files
rootroot
root
authored and
root
committed
fixup! sim-ln/refactor: move parsing into its own module
1 parent c911d6a commit cbffec7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sim-cli/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ async fn main() -> anyhow::Result<()> {
2020
.init()
2121
.unwrap();
2222

23+
let sim = create_simulation(&cli).await?;
2324
let sim2 = sim.clone();
2425

2526
ctrlc::set_handler(move || {

sim-cli/src/parsing.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use std::ops::AsyncFn;
1313
use std::path::PathBuf;
1414
use std::sync::Arc;
1515
use tokio::sync::Mutex;
16+
use tokio_util::task::TaskTracker;
1617

1718
/// The default directory where the simulation files are stored and where the results will be written to.
1819
pub const DEFAULT_DATA_DIR: &str = ".";
@@ -167,8 +168,9 @@ pub async fn create_simulation(cli: &Cli) -> Result<Simulation, anyhow::Error> {
167168
};
168169

169170
let validated_activities = validate_activities(activity, &clients_info, get_node).await?;
171+
let tasks = TaskTracker::new();
170172

171-
Ok(Simulation::new(cfg, clients, validated_activities))
173+
Ok(Simulation::new(cfg, clients, validated_activities, tasks))
172174
}
173175

174176
/// Connects to the set of nodes providing, returning a map of node public keys to LightningNode implementations and

0 commit comments

Comments
 (0)