mirror of
https://github.com/ivabus/binhost
synced 2024-11-12 19:25:16 +03:00
Remove unused HASH_CALCULATION_SH static
It was used in early stages of this project to provide sha256 feature flag before 0.3.0. Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
652196c247
commit
d501843f06
|
@ -72,8 +72,6 @@ static MANIFEST: Lazy<Vec<u8>> = Lazy::new(|| {
|
||||||
});
|
});
|
||||||
static WEB_SH: &str = include_str!("../web.sh");
|
static WEB_SH: &str = include_str!("../web.sh");
|
||||||
|
|
||||||
static HASH_CALCULATION_SH: &str = "";
|
|
||||||
|
|
||||||
async fn reload_bins(args: &Args) {
|
async fn reload_bins(args: &Args) {
|
||||||
let (bins, time) = &mut *BINS.write().await;
|
let (bins, time) = &mut *BINS.write().await;
|
||||||
if (Instant::now() - *time).as_secs() > args.refresh {
|
if (Instant::now() - *time).as_secs() > args.refresh {
|
||||||
|
@ -160,7 +158,6 @@ async fn get_script(bin: &str) -> ScriptResponse {
|
||||||
Some(bin) => {
|
Some(bin) => {
|
||||||
let mut script = String::from(WEB_SH);
|
let mut script = String::from(WEB_SH);
|
||||||
script = script
|
script = script
|
||||||
.replace("{{HASH_CALCULATION}}", HASH_CALCULATION_SH)
|
|
||||||
.replace("{{NAME}}", &bin.name)
|
.replace("{{NAME}}", &bin.name)
|
||||||
.replace("{{PLATFORM_LIST}}", &format_platform_list(bin))
|
.replace("{{PLATFORM_LIST}}", &format_platform_list(bin))
|
||||||
.replace("{{EXTERNAL_ADDRESS}}", &args.url);
|
.replace("{{EXTERNAL_ADDRESS}}", &args.url);
|
||||||
|
|
Loading…
Reference in a new issue