Skip to content

Commit

Permalink
Add clarifications to the schemas doc-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Mar 28, 2022
1 parent 8fa9785 commit 8cb776a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/lib/storage/src/chain/tree_cache/bincode_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>);

Expand Down
2 changes: 2 additions & 0 deletions core/lib/storage/src/chain/tree_cache/json_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>);

Expand Down

0 comments on commit 8cb776a

Please sign in to comment.