Skip to content

Commit

Permalink
chore: +1s
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Jun 25, 2024
1 parent ada16a9 commit 9b09fef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl MokaCacheManager {
Ok(size)
}

/// Recover the cache by iterating through the cache directory.
/// Recovers the cache by iterating through the cache directory.
async fn recover(&self) -> Result<()> {
let mut read_dir = fs::read_dir(&self.root).await.context(ReadSnafu)?;
while let Some(entry) = read_dir.next_entry().await.context(ReadSnafu)? {
Expand Down Expand Up @@ -235,7 +235,7 @@ impl MokaCacheManager {
Ok(())
}

/// Walk through the directory and calculate the total size of all files in the directory.
/// Walks through the directory and calculate the total size of all files in the directory.
async fn get_dir_size(path: &PathBuf) -> Result<u64> {
let mut size = 0;
let mut wd = WalkDir::new(path).filter(|entry| async move {
Expand Down

0 comments on commit 9b09fef

Please sign in to comment.