From d32d73a89f84f339a63a6b3ca8e6d7cf5c4122c9 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 20 Apr 2022 18:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=87=E4=BB=B6=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E2=80=9C=E6=85=A2=E2=80=9D=E6=89=93=E5=BC=80=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=80=97=E6=97=B6=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/storage_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/caches/storage_file.go b/internal/caches/storage_file.go index 9b4005c..3863ae1 100644 --- a/internal/caches/storage_file.go +++ b/internal/caches/storage_file.go @@ -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 文件缓存 // 文件结构: