diff --git a/core/lib/storage/src/chain/tree_cache/bincode_schema.rs b/core/lib/storage/src/chain/tree_cache/bincode_schema.rs index 20dbf2c8c7..8dbae443bf 100644 --- a/core/lib/storage/src/chain/tree_cache/bincode_schema.rs +++ b/core/lib/storage/src/chain/tree_cache/bincode_schema.rs @@ -8,6 +8,8 @@ use super::records::AccountTreeCache; use crate::{QueryResult, StorageProcessor}; /// Tree cache schema contains methods to store/load Merkle tree cache. +/// +/// This schema is used to interact with caches encoded as *binary* data (using `bincode` protocol). #[derive(Debug)] pub struct TreeCacheSchemaBincode<'a, 'c>(pub &'a mut StorageProcessor<'c>); diff --git a/core/lib/storage/src/chain/tree_cache/json_schema.rs b/core/lib/storage/src/chain/tree_cache/json_schema.rs index 9150aba193..e4dd971cb5 100644 --- a/core/lib/storage/src/chain/tree_cache/json_schema.rs +++ b/core/lib/storage/src/chain/tree_cache/json_schema.rs @@ -8,6 +8,8 @@ use super::records::AccountTreeCache; use crate::{QueryResult, StorageProcessor}; /// Tree cache schema contains methods to store/load Merkle tree cache. +/// +/// This schema is used to interact with caches encoded as *JSON* data. #[derive(Debug)] pub struct TreeCacheSchemaJSON<'a, 'c>(pub &'a mut StorageProcessor<'c>);