From 5fc1b55d523dff4e6a1e1556728fc1276c4bf57e Mon Sep 17 00:00:00 2001 From: tijl Date: Sat, 9 Aug 2025 19:05:21 +0200 Subject: [PATCH] update --- pkg/client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index a0eb053..afb05fd 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -47,12 +47,12 @@ func NewClient(serverURL string, folder string) (*Client, error) { stopRetry: make(chan struct{}), } + cli.maxCacheSize = 100000 // or make this configurable + cli.maxCacheInitialLoad = 10000 cli.cacheMap, err = lru.New(cli.maxCacheSize) if err != nil { return nil, err } - cli.maxCacheSize = 100000 // or make this configurable - cli.maxCacheInitialLoad = 10000 // Create buckets if not exist err = db.Update(func(tx *bolt.Tx) error {