From bf2dac5cf13340145214527bd9f9423d0b45caaa Mon Sep 17 00:00:00 2001 From: royalcat Date: Tue, 18 Jun 2024 22:34:28 +0300 Subject: [PATCH] remove nfs handle kv ttl --- src/export/nfs/kvhandler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/export/nfs/kvhandler.go b/src/export/nfs/kvhandler.go index bc06f1f..d84c94b 100644 --- a/src/export/nfs/kvhandler.go +++ b/src/export/nfs/kvhandler.go @@ -7,7 +7,6 @@ import ( "path" "strings" "sync" - "time" "git.kmsign.ru/royalcat/tstor/pkg/go-nfs" "git.kmsign.ru/royalcat/tstor/src/config" @@ -51,7 +50,6 @@ var kvhandlerMeter = otel.Meter("git.kmsign.ru/royalcat/tstor/src/export/nfs.kvh // NewKvHandler provides a basic to/from-file handle cache that can be tuned with a smaller cache of active directory listings. func NewKvHandler(h nfs.Handler, fs nfs.Filesystem, config config.NFS) (nfs.Handler, error) { opts := kvbadger.DefaultOptions(path.Join(config.CachePath, "handlers")) - opts.DefaultTTL = time.Hour opts.BadgerOptions.Logger = log.BadgerLogger("nfs", "kvhandler") activeHandles, err := kvbadger.NewBagerKVBinaryKey[uuid.UUID, handle](opts)