|
@@ -17,7 +17,7 @@ import (
|
|
|
"github.com/garyburd/redigo/redis"
|
|
|
)
|
|
|
|
|
|
-const checkTimeOut = 1 * time.Minute
|
|
|
+const checkTimeOut = 30 * time.Minute
|
|
|
const tempFilesKey = "tempfilelist"
|
|
|
|
|
|
// FileAccess RPC服务
|
|
@@ -28,7 +28,7 @@ type FileAccess struct {
|
|
|
redisHost string
|
|
|
}
|
|
|
|
|
|
-// 代表一个临时文件
|
|
|
+// 临时文件
|
|
|
type tempFile struct {
|
|
|
//文件路径
|
|
|
FileName string
|
|
@@ -141,7 +141,7 @@ func (f *FileAccess) checker() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- time.Sleep(30 * time.Second)
|
|
|
+ time.Sleep(15 * time.Minute)
|
|
|
}
|
|
|
}
|
|
|
|