Skip to content

Commit

Permalink
fix CacheError
Browse files Browse the repository at this point in the history
  • Loading branch information
guojidan committed Nov 20, 2023
1 parent 43787a7 commit 76ba478
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::storage::table_codec::TableCodec;
use crate::types::errors::TypeError;
use crate::types::index::{Index, IndexMetaRef};
use crate::types::tuple::{Tuple, TupleId};
use kip_db::error::CacheError;
use kip_db::kernel::lsm::mvcc;
use kip_db::KernelError;
use std::collections::VecDeque;
Expand Down Expand Up @@ -147,9 +146,6 @@ pub enum StorageError {
#[error("kipdb error")]
KipDBError(KernelError),

#[error("cache error")]
CacheError(CacheError),

#[error("type error")]
TypeError(#[from] TypeError),

Expand All @@ -168,9 +164,3 @@ impl From<KernelError> for StorageError {
StorageError::KipDBError(value)
}
}

impl From<CacheError> for StorageError {
fn from(value: CacheError) -> Self {
StorageError::CacheError(value)
}
}

0 comments on commit 76ba478

Please sign in to comment.