fixed flag name
This commit is contained in:
parent
45f5c9d06a
commit
0681c6891b
@ -29,7 +29,7 @@ func InitCache() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
ticker := time.NewTicker(FlagUpdateHashFileInterval)
|
ticker := time.NewTicker(FlagUpdateCacheFileInterval)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
for range ticker.C {
|
for range ticker.C {
|
||||||
if err := WriteCache(); err != nil {
|
if err := WriteCache(); err != nil {
|
||||||
|
2
main.go
2
main.go
@ -20,7 +20,7 @@ var ( // flags
|
|||||||
FlagSourceDir = envvars.String("SOURCE_PATH", "/video")
|
FlagSourceDir = envvars.String("SOURCE_PATH", "/video")
|
||||||
FlagTargetDir = envvars.String("TARGET_PATH", "/audio")
|
FlagTargetDir = envvars.String("TARGET_PATH", "/audio")
|
||||||
FlagCacheFile = envvars.String("CACHE_FILE", "/hashes.bin")
|
FlagCacheFile = envvars.String("CACHE_FILE", "/hashes.bin")
|
||||||
FlagUpdateHashFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second)
|
FlagUpdateCacheFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second)
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user