println
This commit is contained in:
parent
9a3e8d7e31
commit
a3eef3bc11
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||||
);
|
);
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue