This commit is contained in:
Tijl 2025-08-09 19:05:21 +02:00
parent 9718a027e0
commit a440f07642
Signed by: tijl
GPG Key ID: DAE24BFCD722F053

View File

@ -47,12 +47,12 @@ func NewClient(serverURL string, folder string) (*Client, error) {
stopRetry: make(chan struct{}), stopRetry: make(chan struct{}),
} }
cli.maxCacheSize = 100000 // or make this configurable
cli.maxCacheInitialLoad = 10000
cli.cacheMap, err = lru.New(cli.maxCacheSize) cli.cacheMap, err = lru.New(cli.maxCacheSize)
if err != nil { if err != nil {
return nil, err return nil, err
} }
cli.maxCacheSize = 100000 // or make this configurable
cli.maxCacheInitialLoad = 10000
// Create buckets if not exist // Create buckets if not exist
err = db.Update(func(tx *bolt.Tx) error { err = db.Update(func(tx *bolt.Tx) error {