From a2004f06ae20a77d96e1a6b29cf5e0de3b016ff9 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Tue, 6 Jun 2023 13:16:47 +0300 Subject: [PATCH] chore(db): fix dupsort typo (#3014) --- crates/storage/db/src/tables/mod.rs | 2 +- crates/storage/db/src/tables/raw.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/storage/db/src/tables/mod.rs b/crates/storage/db/src/tables/mod.rs index 3a0f8f1c73..a33d69f84c 100644 --- a/crates/storage/db/src/tables/mod.rs +++ b/crates/storage/db/src/tables/mod.rs @@ -17,7 +17,7 @@ pub mod models; mod raw; pub(crate) mod utils; -pub use raw::{RawDubSort, RawKey, RawTable, RawValue}; +pub use raw::{RawDupSort, RawKey, RawTable, RawValue}; /// Declaration of all Database tables. use crate::{ diff --git a/crates/storage/db/src/tables/raw.rs b/crates/storage/db/src/tables/raw.rs index aa23bffce0..883c759b62 100644 --- a/crates/storage/db/src/tables/raw.rs +++ b/crates/storage/db/src/tables/raw.rs @@ -19,14 +19,14 @@ impl Table for RawTable { type Value = RawValue; } -/// Raw DubSort table that can be used to access any table and its data in raw mode. +/// Raw DupSort table that can be used to access any table and its data in raw mode. /// This is useful for delayed decoding/encoding of data. #[derive(Default, Copy, Clone, Debug)] -pub struct RawDubSort { +pub struct RawDupSort { phantom: std::marker::PhantomData, } -impl Table for RawDubSort { +impl Table for RawDupSort { const NAME: &'static str = T::NAME; type Key = RawKey; @@ -34,7 +34,7 @@ impl Table for RawDubSort { type Value = RawValue; } -impl DupSort for RawDubSort { +impl DupSort for RawDupSort { type SubKey = RawKey; }