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 {