update
This commit is contained in:
parent
9718a027e0
commit
a440f07642
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user