Modify: close file in main routine

This commit is contained in:
HFO4
2019-12-11 18:52:41 +08:00
parent d0bb123e03
commit 18968458a4
7 changed files with 30 additions and 5 deletions

View File

@@ -93,7 +93,6 @@ func (fs *FileSystem) GetContent(ctx context.Context, path string) (io.ReadSeeke
// 将当前存储策略重设为文件使用的
fs.Policy = fs.FileTarget[0].GetPolicy()
err = fs.dispatchHandler()
defer fs.CleanTargets()
if err != nil {
return nil, err
}