mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-10 21:23:30 +00:00
fix: suggestion fix 3
This commit is contained in:
parent
40f8750278
commit
a2904c130c
@ -5,7 +5,7 @@ use rocksdb::{BoundColumnFamily, DBWithThreadMode, MultiThreaded, WriteBatch};
|
||||
|
||||
use crate::{DbResult, error::DbError};
|
||||
|
||||
pub mod cells;
|
||||
pub mod shared_cells;
|
||||
|
||||
pub trait SimpleStorableCell {
|
||||
const CF_NAME: &'static str;
|
||||
@ -4,8 +4,8 @@ use common::block::Block;
|
||||
use crate::{
|
||||
BLOCK_CELL_NAME, CF_BLOCK_NAME, CF_META_NAME, DB_META_FIRST_BLOCK_IN_DB_KEY,
|
||||
DB_META_FIRST_BLOCK_SET_KEY, DB_META_LAST_BLOCK_IN_DB_KEY, DbResult,
|
||||
cells::{SimpleReadableCell, SimpleStorableCell, SimpleWritableCell},
|
||||
error::DbError,
|
||||
storable_cell::{SimpleReadableCell, SimpleStorableCell, SimpleWritableCell},
|
||||
};
|
||||
|
||||
#[derive(Debug, BorshSerialize, BorshDeserialize)]
|
||||
@ -3,13 +3,13 @@ use nssa::V03State;
|
||||
|
||||
use crate::{
|
||||
CF_META_NAME, DbResult,
|
||||
cells::{SimpleReadableCell, SimpleStorableCell, SimpleWritableCell},
|
||||
error::DbError,
|
||||
indexer::{
|
||||
ACC_NUM_CELL_NAME, BLOCK_HASH_CELL_NAME, BREAKPOINT_CELL_NAME, CF_ACC_META,
|
||||
CF_BREAKPOINT_NAME, CF_HASH_TO_ID, CF_TX_TO_ID, DB_META_LAST_BREAKPOINT_ID,
|
||||
DB_META_LAST_OBSERVED_L1_LIB_HEADER_ID_IN_DB_KEY, TX_HASH_CELL_NAME,
|
||||
},
|
||||
storable_cell::{SimpleReadableCell, SimpleStorableCell, SimpleWritableCell},
|
||||
};
|
||||
|
||||
#[derive(Debug, BorshSerialize, BorshDeserialize)]
|
||||
@ -214,8 +214,8 @@ impl SimpleWritableCell for AccNumTxCell {
|
||||
#[cfg(test)]
|
||||
mod uniform_tests {
|
||||
use crate::{
|
||||
cells::SimpleStorableCell as _,
|
||||
indexer::indexer_cells::{BreakpointCellOwned, BreakpointCellRef},
|
||||
storable_cell::SimpleStorableCell as _,
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
use super::{Block, DbResult, RocksDBIO, V03State};
|
||||
use crate::{
|
||||
DBIO as _,
|
||||
cells::shared_cells::{BlockCell, FirstBlockCell, FirstBlockSetCell, LastBlockCell},
|
||||
indexer::indexer_cells::{
|
||||
AccNumTxCell, BlockHashToBlockIdMapCell, BreakpointCellOwned, LastBreakpointIdCell,
|
||||
LastObservedL1LibHeaderCell, TxHashToBlockIdMapCell,
|
||||
},
|
||||
storable_cell::cells::shared_cells::{
|
||||
BlockCell, FirstBlockCell, FirstBlockSetCell, LastBlockCell,
|
||||
},
|
||||
};
|
||||
|
||||
#[expect(clippy::multiple_inherent_impl, reason = "Readability")]
|
||||
|
||||
@ -5,11 +5,11 @@ use rocksdb::WriteBatch;
|
||||
use super::{BREAKPOINT_INTERVAL, Block, DbError, DbResult, RocksDBIO};
|
||||
use crate::{
|
||||
DB_META_FIRST_BLOCK_IN_DB_KEY, DBIO as _,
|
||||
cells::shared_cells::{FirstBlockSetCell, LastBlockCell},
|
||||
indexer::indexer_cells::{
|
||||
AccNumTxCell, BlockHashToBlockIdMapCell, LastBreakpointIdCell, LastObservedL1LibHeaderCell,
|
||||
TxHashToBlockIdMapCell,
|
||||
},
|
||||
storable_cell::cells::shared_cells::{FirstBlockSetCell, LastBlockCell},
|
||||
};
|
||||
|
||||
#[expect(clippy::multiple_inherent_impl, reason = "Readability")]
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
use super::{BREAKPOINT_INTERVAL, DbError, DbResult, RocksDBIO, V03State};
|
||||
use crate::{
|
||||
DBIO as _,
|
||||
cells::shared_cells::{FirstBlockSetCell, LastBlockCell},
|
||||
indexer::indexer_cells::{
|
||||
BreakpointCellRef, LastBreakpointIdCell, LastObservedL1LibHeaderCell,
|
||||
},
|
||||
storable_cell::cells::shared_cells::{FirstBlockSetCell, LastBlockCell},
|
||||
};
|
||||
|
||||
#[expect(clippy::multiple_inherent_impl, reason = "Readability")]
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
use rocksdb::{DBWithThreadMode, MultiThreaded, WriteBatch};
|
||||
|
||||
use crate::{
|
||||
cells::{SimpleReadableCell, SimpleWritableCell},
|
||||
error::DbError,
|
||||
storable_cell::{SimpleReadableCell, SimpleWritableCell},
|
||||
};
|
||||
|
||||
pub mod cells;
|
||||
pub mod error;
|
||||
pub mod indexer;
|
||||
pub mod sequencer;
|
||||
pub mod storable_cell;
|
||||
|
||||
/// Maximal size of stored blocks in base.
|
||||
///
|
||||
|
||||
@ -8,14 +8,12 @@ use rocksdb::{
|
||||
|
||||
use crate::{
|
||||
CF_BLOCK_NAME, CF_META_NAME, DB_META_FIRST_BLOCK_IN_DB_KEY, DBIO, DbResult,
|
||||
cells::shared_cells::{BlockCell, FirstBlockCell, FirstBlockSetCell, LastBlockCell},
|
||||
error::DbError,
|
||||
sequencer::sequencer_cells::{
|
||||
LastFinalizedBlockIdCell, LatestBlockMetaCellOwned, LatestBlockMetaCellRef,
|
||||
NSSAStateCellOwned, NSSAStateCellRef,
|
||||
},
|
||||
storable_cell::cells::shared_cells::{
|
||||
BlockCell, FirstBlockCell, FirstBlockSetCell, LastBlockCell,
|
||||
},
|
||||
};
|
||||
|
||||
pub mod sequencer_cells;
|
||||
|
||||
@ -4,12 +4,12 @@ use nssa::V03State;
|
||||
|
||||
use crate::{
|
||||
CF_META_NAME, DbResult,
|
||||
cells::{SimpleReadableCell, SimpleStorableCell, SimpleWritableCell},
|
||||
error::DbError,
|
||||
sequencer::{
|
||||
CF_NSSA_STATE_NAME, DB_META_LAST_FINALIZED_BLOCK_ID, DB_META_LATEST_BLOCK_META_KEY,
|
||||
DB_NSSA_STATE_KEY,
|
||||
},
|
||||
storable_cell::{SimpleReadableCell, SimpleStorableCell, SimpleWritableCell},
|
||||
};
|
||||
|
||||
#[derive(BorshDeserialize)]
|
||||
@ -98,10 +98,10 @@ impl SimpleWritableCell for LatestBlockMetaCellRef<'_> {
|
||||
#[cfg(test)]
|
||||
mod uniform_tests {
|
||||
use crate::{
|
||||
cells::SimpleStorableCell as _,
|
||||
sequencer::sequencer_cells::{
|
||||
LatestBlockMetaCellOwned, LatestBlockMetaCellRef, NSSAStateCellOwned, NSSAStateCellRef,
|
||||
},
|
||||
storable_cell::SimpleStorableCell as _,
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
||||
@ -1 +0,0 @@
|
||||
pub mod shared_cells;
|
||||
Loading…
x
Reference in New Issue
Block a user