Skip to content

Commit 13811da

Browse files
committed
move cache and cache_config to cfxcore-types
1 parent a9744c4 commit 13811da

File tree

6 files changed

+53
-3
lines changed

6 files changed

+53
-3
lines changed

crates/cfxcore/core/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use keccak_hash as hash;
1616
pub mod message;
1717

1818
pub mod block_data_manager;
19-
pub mod cache_config;
20-
pub mod cache_manager;
2119
pub mod client;
2220
pub mod consensus;
2321
pub mod db;
@@ -32,7 +30,8 @@ pub mod transaction_pool;
3230
pub mod verification;
3331

3432
pub use cfxcore_types::{
35-
channel, core_error, node_type, state_exposer, unique_id,
33+
cache_config, cache_manager, channel, core_error, node_type, state_exposer,
34+
unique_id,
3635
};
3736

3837
pub use crate::{
File renamed without changes.

crates/cfxcore/core/src/cache_manager.rs renamed to crates/cfxcore/types/src/cache_manager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// See http://www.gnu.org/licenses/
2020

2121
use cfx_types::H256;
22+
use log::debug;
2223
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
2324
use malloc_size_of_derive::MallocSizeOf as DeriveMallocSizeOf;
2425
use std::{

crates/cfxcore/types/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
pub mod block_data_manager;
2+
pub mod cache_config;
3+
pub mod cache_manager;
24
pub mod channel;
35
pub mod core_error;
46
pub mod node_type;

tools/consensus_bench/Cargo.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/evm-spec-tester/Cargo.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)