diff --git a/Cargo.toml b/Cargo.toml index 679c7cd..de62dbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "binhost" -version = "0.2.1" +version = "0.2.2" edition = "2021" license = "MIT" repository = "https://github.com/ivabus/binhost" diff --git a/src/main.rs b/src/main.rs index 900e3a3..6b00bb2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,6 +31,7 @@ fi "#; #[cfg(not(feature = "sha256"))] static HASH_CALCULATION_SH: &str = ""; + async fn reload_bins(bins: (&mut HashMap, &mut Instant), args: &Args) { if (Instant::now() - *bins.1).as_secs() > args.refresh { *bins.0 = get_bins(args).await;