mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
pass correct header column to read_meta again (#827)
* pass correct header column to read_meta again fixes #826 * make COLUMN_META exist in a single place * pass COLUMN_META as arg for more consistency with other db utils * remove unused import
This commit is contained in:
@@ -71,7 +71,7 @@ impl<Block> LightStorage<Block>
|
||||
{
|
||||
/// Create new storage with given settings.
|
||||
pub fn new(config: DatabaseSettings) -> ClientResult<Self> {
|
||||
let db = open_database(&config, "light")?;
|
||||
let db = open_database(&config, columns::META, "light")?;
|
||||
|
||||
Self::from_kvdb(db as Arc<_>)
|
||||
}
|
||||
@@ -92,7 +92,7 @@ impl<Block> LightStorage<Block>
|
||||
columns::HEADER,
|
||||
columns::AUTHORITIES
|
||||
)?;
|
||||
let meta = RwLock::new(read_meta::<Block>(&*db, columns::META)?);
|
||||
let meta = RwLock::new(read_meta::<Block>(&*db, columns::META, columns::HEADER)?);
|
||||
let leaves = RwLock::new(LeafSet::read_from_db(&*db, columns::META, meta_keys::LEAF_PREFIX)?);
|
||||
|
||||
Ok(LightStorage {
|
||||
|
||||
Reference in New Issue
Block a user