Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pushkar Mishra <[email protected]>
  • Loading branch information
Pushkarm029 committed Mar 10, 2024
1 parent 28beaa0 commit ae06033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs-storage/src/cli/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::env;
use std::fs;
use std::io;
use std::path::{Path, PathBuf};
use std::path::PathBuf;
use fs_storage::file_storage::FileStorage;

fn main() {
Expand Down Expand Up @@ -59,7 +59,7 @@ fn main() {

fn write_to_file(kv_pairs: HashMap<String, String>, storage_path: &str) -> io::Result<()> {
let mut storage_file = PathBuf::from(storage_path);
storage_file.push("storage.txt"); // Adjust the filename as needed
storage_file.push("storage.txt");

let mut storage = FileStorage::new("our_label".to_string(), &storage_file);
match storage.write_file(&kv_pairs) {
Expand Down

0 comments on commit ae06033

Please sign in to comment.