From 0681c6891bcf4a4591e8d19625c65c85a7637322 Mon Sep 17 00:00:00 2001 From: Tordarus Date: Wed, 15 Jan 2025 15:22:52 +0100 Subject: [PATCH] fixed flag name --- hash_cache.go | 2 +- main.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hash_cache.go b/hash_cache.go index e0f7277..93c79d8 100644 --- a/hash_cache.go +++ b/hash_cache.go @@ -29,7 +29,7 @@ func InitCache() { } go func() { - ticker := time.NewTicker(FlagUpdateHashFileInterval) + ticker := time.NewTicker(FlagUpdateCacheFileInterval) defer ticker.Stop() for range ticker.C { if err := WriteCache(); err != nil { diff --git a/main.go b/main.go index b248f67..bd2fefb 100644 --- a/main.go +++ b/main.go @@ -17,10 +17,10 @@ import ( ) var ( // flags - FlagSourceDir = envvars.String("SOURCE_PATH", "/video") - FlagTargetDir = envvars.String("TARGET_PATH", "/audio") - FlagCacheFile = envvars.String("CACHE_FILE", "/hashes.bin") - FlagUpdateHashFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second) + FlagSourceDir = envvars.String("SOURCE_PATH", "/video") + FlagTargetDir = envvars.String("TARGET_PATH", "/audio") + FlagCacheFile = envvars.String("CACHE_FILE", "/hashes.bin") + FlagUpdateCacheFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second) ) func main() {