Skip to content

Commit bcc7298

Browse files
starknet_patricia_storage: add config field to rocksDB storage
1 parent cfc584f commit bcc7298

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/starknet_patricia_storage/src/rocksdb_storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ impl RocksDbOptions {
119119
pub struct RocksDbStorage {
120120
db: Arc<DB>,
121121
options: Arc<RocksDbOptions>,
122+
_config: RocksDbStorageConfig,
122123
}
123124

124125
/// Configuration for RocksDB storage.
@@ -259,7 +260,7 @@ impl RocksDbStorage {
259260
pub fn new(path: &Path, config: RocksDbStorageConfig) -> PatriciaStorageResult<Self> {
260261
let options = RocksDbOptions::from_config(&config);
261262
let db = Arc::new(DB::open(&options.db_options, path)?);
262-
Ok(Self { db, options: Arc::new(options) })
263+
Ok(Self { db, options: Arc::new(options), _config: config })
263264
}
264265
}
265266

0 commit comments

Comments
 (0)