Skip to content

Commit b53da07

Browse files
committed
refactor: [torrust#1407] remove duplicate code
1 parent aff065c commit b53da07

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/console/profiling.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,11 @@
157157
//! kcachegrind callgrind.out
158158
//! ```
159159
use std::env;
160-
use std::sync::Arc;
161160
use std::time::Duration;
162161

163162
use tokio::time::sleep;
164163

165-
use crate::{app, bootstrap};
164+
use crate::app;
166165

167166
pub async fn run() {
168167
// Parse command line arguments
@@ -180,11 +179,7 @@ pub async fn run() {
180179
return;
181180
};
182181

183-
let (config, app_container) = bootstrap::app::setup();
184-
185-
let app_container = Arc::new(app_container);
186-
187-
let (jobs, _registar) = app::start(&config, &app_container).await;
182+
let (_app_container, jobs, _registar) = app::run().await;
188183

189184
// Run the tracker for a fixed duration
190185
let run_duration = sleep(Duration::from_secs(duration_secs));

0 commit comments

Comments
 (0)