Added code for the service
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
};
|
||||
|
||||
loop {
|
||||
println!("Do some work");
|
||||
catapult::service::do_the_work(&app).await;
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(catapult::app::SECONDS_TO_SLEEP)).await;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user