From 8ccd0bf976c00f029d152a7f3ca7e86b02899e0f Mon Sep 17 00:00:00 2001 From: ViacheslavB Date: Mon, 10 Apr 2023 13:29:15 +0300 Subject: [PATCH] Patch changed API of RocksDB --- storage/src/db/rocksdb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/src/db/rocksdb.rs b/storage/src/db/rocksdb.rs index 060c2b8f..3060141e 100644 --- a/storage/src/db/rocksdb.rs +++ b/storage/src/db/rocksdb.rs @@ -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