mirror of
https://github.com/ivabus/binhost
synced 2024-11-22 07:55:05 +03:00
Add whitespace
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
5d2944928f
commit
6cc6e28c40
2 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue