From 901f7ad7481e49d80e2a3b5e06755f7b5aa90e1f Mon Sep 17 00:00:00 2001 From: soonsouth <163404563+soonsouth@users.noreply.github.com> Date: Mon, 18 Mar 2024 02:30:06 +0800 Subject: [PATCH] chore: fix const name (#1021) Signed-off-by: soonsouth --- src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index 8d6c758..f261f03 100644 --- a/src/db.rs +++ b/src/db.rs @@ -42,7 +42,7 @@ const CONFIG_KEY: &str = "C"; const TIP_KEY: &[u8] = b"T"; // Taken from https://github.com/facebook/rocksdb/blob/master/include/rocksdb/db.h#L654-L689 -const DB_PROPERIES: &[&str] = &[ +const DB_PROPERTIES: &[&str] = &[ "rocksdb.num-immutable-mem-table", "rocksdb.mem-table-flush-pending", "rocksdb.compaction-pending", @@ -315,7 +315,7 @@ impl DBStore { ) -> impl Iterator + '_ { COLUMN_FAMILIES.iter().flat_map(move |cf_name| { let cf = self.db.cf_handle(cf_name).expect("missing CF"); - DB_PROPERIES.iter().filter_map(move |property_name| { + DB_PROPERTIES.iter().filter_map(move |property_name| { let value = self .db .property_int_value_cf(cf, *property_name)