fn init_rocks_db(rocks_config: &RocksDbConfig) -> Result<rocks_db, String> {
        info!("Creating RocksDB instance");

        let opts = RocksDb::create_rocks_db_options(&rocks_config)?;
        match rocks_db::open(&opts, &rocks_config.db_path) {
            Ok(db) => Ok(db),
            Err(e) => {
                error!("Failed to open rockdb database. Error:{:?}", e);
                Err(e.to_string())
            }
        }
    }
/// initialize rocks db options and create a new db instance
initialize rocks db options and create a new db instance
initialize rocks db options and create a new db instance
fn init_rocks_db(rocks_config: &RocksDbConfig) -> Result<rocks_db, String> {
        info!("Creating RocksDB instance");
        let opts = RocksDb::create_rocks_db_options(&rocks_config)?;
        match rocks_db::open(&opts, &rocks_config.db_path) {
            Ok(db) => Ok(db),
            Err(e) => {
                error!("Failed to open rockdb database. Error:{:?}", e);
                Err(e.to_string())
            }
        }
    }
fn init_rocks_db ( rocks_config : & RocksDbConfig ) -> Result < rocks_db , String > { info ! ( " " ) ; let opts = RocksDb :: create_rocks_db_options ( & rocks_config ) ? ; match rocks_db :: open ( & opts , & rocks_config . db_path ) { Ok ( db ) => Ok ( db ) , Err ( e ) => { error ! ( " " e ) ; Err ( e . to_string ( ) ) } } }
initialize rocks db options and create a new db instance
initialize rocks db options and create a new db instance
rocks_config
&RocksDbConfig