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