Skip to content

Commit

Permalink
pause check hash
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Apr 19, 2024
1 parent 7eff5d0 commit 168c9b7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions crates/snm_core/src/model/dispatch_manage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,21 +263,21 @@ impl DispatchManage {
.download(&download_url, &downloaded_file_path_buf)
.await?;

let expect_sha256 = self.manager.get_expect_shasum(v).await?;

let actual_sha256 = self
.manager
.get_actual_shasum(&downloaded_file_path_buf)
.await?;

if expect_sha256 != actual_sha256 {
return Err(SnmError::Error(format!(
"File {} Sha256 verification failed, expected {} but received {}.",
downloaded_file_path_buf.display(),
expect_sha256,
actual_sha256
)));
}
// let expect_sha256 = self.manager.get_expect_shasum(v).await?;

// let actual_sha256 = self
// .manager
// .get_actual_shasum(&downloaded_file_path_buf)
// .await?;

// if expect_sha256 != actual_sha256 {
// return Err(SnmError::Error(format!(
// "File {} Sha256 verification failed, expected {} but received {}.",
// downloaded_file_path_buf.display(),
// expect_sha256,
// actual_sha256
// )));
// }

let runtime_dir_path_buf = self.manager.get_runtime_dir_path_buf(v);
self.manager
Expand Down

0 comments on commit 168c9b7

Please sign in to comment.