Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 6, 2024
1 parent 81b0742 commit 9d60261
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compiler/rust/canister/src/upload_file/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn load_hashes() -> Result<HashMap<String, Vec<u8>>, std::io::Error> {
let file_hash_path = get_file_hash_path();
let buffer = std::fs::read(file_hash_path)?;

serde_json::from_slice(&buffer)?
Ok(serde_json::from_slice(&buffer)?)
}

fn save_hashes(file_hashes: &HashMap<String, Vec<u8>>) -> Result<(), std::io::Error> {
Expand Down
3 changes: 1 addition & 2 deletions src/compiler/rust/canister/src/upload_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ mod hash;
mod reset;
mod upload_file_chunk;

pub use hash::get_file_hash;
pub use hash::init_hashes;
pub use hash::{get_file_hash, init_hashes};
pub use reset::reset_for_new_upload;
pub use upload_file_chunk::upload_file_chunk;

Expand Down
Binary file modified static_canister_template.wasm
Binary file not shown.

0 comments on commit 9d60261

Please sign in to comment.