Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
conaticus committed Jun 29, 2023
1 parent cbf2dd4 commit a6c4732
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src-tauri/src/filesystem/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ pub fn save_system_cache(state_mux: &StateSafe) {
/// Gets the cache from the state (in memory), encodes and saves it to the cache file path.
/// This needs optimising.
fn save_to_cache(state: &mut MutexGuard<AppState>) {
println!("saving cache");
let serialized_cache = serde_json::to_string(&state.system_cache).unwrap();

let mut file = fs::OpenOptions::new()
Expand All @@ -139,8 +138,6 @@ fn save_to_cache(state: &mut MutexGuard<AppState>) {
.unwrap();

file.write_all(serialized_cache.as_bytes()).unwrap();

println!("cache saved");
}

/// Reads and decodes the cache file and stores it in memory for quick access.
Expand Down

0 comments on commit a6c4732

Please sign in to comment.