mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
修正文件缓存“慢”打开文件耗时阈值
This commit is contained in:
@@ -65,7 +65,7 @@ var sharedWritingFileKeyLocker = sync.Mutex{}
|
||||
|
||||
var maxOpenFiles = NewMaxOpenFiles(2)
|
||||
|
||||
const maxOpenFilesSlowCost = 1 * time.Microsecond
|
||||
const maxOpenFilesSlowCost = 500 * time.Microsecond // 0.5ms
|
||||
|
||||
// FileStorage 文件缓存
|
||||
// 文件结构:
|
||||
|
||||
Reference in New Issue
Block a user