Add whitespace

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2023-12-16 10:58:11 +03:00
parent 5d2944928f
commit 6cc6e28c40
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "binhost" name = "binhost"
version = "0.2.1" version = "0.2.2"
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
repository = "https://github.com/ivabus/binhost" repository = "https://github.com/ivabus/binhost"

View file

@ -31,6 +31,7 @@ fi
"#; "#;
#[cfg(not(feature = "sha256"))] #[cfg(not(feature = "sha256"))]
static HASH_CALCULATION_SH: &str = ""; static HASH_CALCULATION_SH: &str = "";
async fn reload_bins(bins: (&mut HashMap<String, Bin>, &mut Instant), args: &Args) { async fn reload_bins(bins: (&mut HashMap<String, Bin>, &mut Instant), args: &Args) {
if (Instant::now() - *bins.1).as_secs() > args.refresh { if (Instant::now() - *bins.1).as_secs() > args.refresh {
*bins.0 = get_bins(args).await; *bins.0 = get_bins(args).await;