mirror of
https://github.com/nxshock/simplefileshare.git
synced 2024-11-27 03:11:01 +05:00
Remove unused code
This commit is contained in:
parent
456880bbe7
commit
c2cbf59793
@ -11,7 +11,7 @@ import (
|
|||||||
func removeOldFilesThread(path string, olderThan time.Duration) {
|
func removeOldFilesThread(path string, olderThan time.Duration) {
|
||||||
ticker := time.NewTicker(time.Hour)
|
ticker := time.NewTicker(time.Hour)
|
||||||
|
|
||||||
for _ = range ticker.C {
|
for range ticker.C {
|
||||||
log.Debugln("Removing old files...")
|
log.Debugln("Removing old files...")
|
||||||
err := removeOldFiles(path, olderThan)
|
err := removeOldFiles(path, olderThan)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user