Skip to content

Commit

Permalink
Patch changed API of RocksDB
Browse files Browse the repository at this point in the history
  • Loading branch information
bvscd authored Apr 10, 2023
1 parent ac93bb5 commit 8ccd0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/src/db/rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl RocksDb {
let mut block_opts = BlockBasedOptions::default();

// specified cache for blocks.
let cache = Cache::new_lru_cache(1024 * 1024 * 1024).unwrap();
let cache = Cache::new_lru_cache(1024 * 1024 * 1024);
block_opts.set_block_cache(&cache);

// save in LRU block cache also indexes and bloom filters
Expand Down

0 comments on commit 8ccd0bf

Please sign in to comment.