Skip to content

Commit 970606e

Browse files
committed
Hide even more of the DomoCache
1 parent f7e6457 commit 970606e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dht-cache/src/domocache.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ impl Display for DomoCacheElement {
9393
/// It keeps an in-memory (or persistent) cache of the whole DHT.
9494
pub struct DomoCache {
9595
storage: SqlxStorage,
96-
pub cache: BTreeMap<String, BTreeMap<String, DomoCacheElement>>,
96+
pub(crate) cache: BTreeMap<String, BTreeMap<String, DomoCacheElement>>,
9797
peers_caches_state: BTreeMap<String, DomoCacheStateMessage>,
98-
pub publish_cache_counter: u8,
99-
pub last_cache_repub_timestamp: u128,
100-
pub swarm: libp2p::Swarm<crate::domolibp2p::DomoBehaviour>,
98+
pub(crate) publish_cache_counter: u8,
99+
pub(crate) last_cache_repub_timestamp: u128,
100+
pub(crate) swarm: libp2p::Swarm<crate::domolibp2p::DomoBehaviour>,
101101
pub is_persistent_cache: bool,
102102
pub local_peer_id: String,
103103
client_tx_channel: Sender<DomoEvent>,

0 commit comments

Comments
 (0)