Fix leveldb change skew
Make leveldb match the changes in syndtr/leveldb API due to breakages at syndtr/goleveldb@63c9e64.
This commit is contained in:
parent
8437520018
commit
844e811f0f
1 changed files with 1 additions and 2 deletions
|
|
@ -26,7 +26,6 @@ import (
|
|||
|
||||
"github.com/barakmich/glog"
|
||||
"github.com/syndtr/goleveldb/leveldb"
|
||||
"github.com/syndtr/goleveldb/leveldb/cache"
|
||||
"github.com/syndtr/goleveldb/leveldb/opt"
|
||||
"github.com/syndtr/goleveldb/leveldb/util"
|
||||
|
||||
|
|
@ -94,7 +93,7 @@ func newQuadStore(path string, options graph.Options) (graph.QuadStore, error) {
|
|||
cacheSize = val
|
||||
}
|
||||
qs.dbOpts = &opt.Options{
|
||||
BlockCache: cache.NewLRUCache(cacheSize * opt.MiB),
|
||||
BlockCacheCapacity: cacheSize * opt.MiB,
|
||||
}
|
||||
qs.dbOpts.ErrorIfMissing = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue