18 lines
346 B
Rust
18 lines
346 B
Rust
//! Maps handling.
|
|
|
|
use rocket::tokio::time::{sleep, Duration};
|
|
|
|
/// The interval between map refreshes (in seconds).
|
|
const SLEEP_INTERVAL: u64 = 60;
|
|
|
|
#[derive(Debug, Default)]
|
|
pub(crate) struct Maps;
|
|
|
|
impl Maps {
|
|
pub(crate) async fn run() -> ! {
|
|
loop {
|
|
sleep(Duration::from_secs(SLEEP_INTERVAL)).await;
|
|
}
|
|
}
|
|
}
|