This commit is contained in:
Mylloon 2023-09-03 15:11:07 +02:00
parent 9a3e8d7e31
commit a3eef3bc11
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ async fn main() {
loop { loop {
let start = Instant::now(); let start = Instant::now();
eprintln!("Scheduler starting"); println!("Scheduler starting");
// Prepare threads // Prepare threads
let thread_a = thread::spawn(revanced::search); let thread_a = thread::spawn(revanced::search);
@ -30,8 +30,8 @@ async fn main() {
let runtime = start.elapsed(); let runtime = start.elapsed();
if let Some(remaining) = wait_time.checked_sub(runtime) { if let Some(remaining) = wait_time.checked_sub(runtime) {
eprintln!("Last run took {:?} to run", runtime); println!("Last run took {:?} to run", runtime);
eprintln!( println!(
"Waiting for {} seconds before next run", "Waiting for {} seconds before next run",
remaining.as_secs() remaining.as_secs()
); );

View file

@ -1,7 +1,7 @@
use octocrab::models::repos::Release; use octocrab::models::repos::Release;
pub async fn search() { pub async fn search() {
eprintln!("{:#?}", get_latest_version().await) println!("{:#?}", get_latest_version().await)
} }
async fn get_latest_version() -> Release { async fn get_latest_version() -> Release {