mirror of
https://github.com/ivabus/binhost
synced 2024-11-21 15:45:05 +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
1 changed files with 0 additions and 3 deletions
|
@ -72,8 +72,6 @@ static MANIFEST: Lazy<Vec<u8>> = Lazy::new(|| {
|
|||
});
|
||||
static WEB_SH: &str = include_str!("../web.sh");
|
||||
|
||||
static HASH_CALCULATION_SH: &str = "";
|
||||
|
||||
async fn reload_bins(args: &Args) {
|
||||
let (bins, time) = &mut *BINS.write().await;
|
||||
if (Instant::now() - *time).as_secs() > args.refresh {
|
||||
|
@ -160,7 +158,6 @@ async fn get_script(bin: &str) -> ScriptResponse {
|
|||
Some(bin) => {
|
||||
let mut script = String::from(WEB_SH);
|
||||
script = script
|
||||
.replace("{{HASH_CALCULATION}}", HASH_CALCULATION_SH)
|
||||
.replace("{{NAME}}", &bin.name)
|
||||
.replace("{{PLATFORM_LIST}}", &format_platform_list(bin))
|
||||
.replace("{{EXTERNAL_ADDRESS}}", &args.url);
|
||||
|
|
Loading…
Reference in a new issue