fix: backend record stream direct file time

This commit is contained in:
2021-05-29 00:01:55 +08:00
parent 0f3fe90b0b
commit baceeb8732

View File

@@ -513,6 +513,9 @@ func (api *API) HandleGetFileStreamDirect(w http.ResponseWriter, r *http.Request
configName := configs[0]
path := api.Tmpfs.GetObjFilePath(int64(id), configName)
if api.Tmpfs.Exits(path) {
api.Tmpfs.Record(path)
}
log.Println("[api] Get direct cached file", path)