使用异步IO写入缓存文件

This commit is contained in:
刘祥超
2022-03-11 15:29:18 +08:00
parent 0d2d7591e5
commit 79ffda4706

View File

@@ -414,7 +414,7 @@ func (this *FileStorage) OpenWriter(key string, expiredAt int64, status int, siz
}
}
writer, err := os.OpenFile(tmpPath, os.O_CREATE|os.O_SYNC|os.O_WRONLY, 0666)
writer, err := os.OpenFile(tmpPath, os.O_CREATE|os.O_WRONLY, 0666)
if err != nil {
return nil, err
}