diff --git a/src/main.rs b/src/main.rs index e7a11a9..5766dfc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,10 @@ -fn main() { - println!("Hello, world!"); +// TODO: Move this somewhere else +pub const SECONDS_TO_SLEEP: u64 = 5; + +#[tokio::main] +async fn main() -> Result<(), Box> { + loop { + println!("Do some work"); + tokio::time::sleep(tokio::time::Duration::from_secs(SECONDS_TO_SLEEP)).await; + } }