Skip to content

Commit

Permalink
chore: add prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Jun 28, 2024
1 parent 067ef20 commit 7e37754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/relayer/src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ pub async fn compute_psi_point(
email_addr: &str,
rand: &str,
) -> Result<Point> {
info!(LOG, "compute_psi_point, path {:?}", circuits_dir_path);
let input_file_name = PathBuf::new()
.join(INPUT_FILES_DIR.get().unwrap())
.join(email_addr.to_string() + "psi" + ".json");
info!(LOG, "input_file_name: {:?}", input_file_name);

let command_str = format!(
"--cwd {} psi-step1 --email-addr {} --client-rand {} --output {}",
Expand All @@ -89,11 +91,14 @@ pub async fn compute_psi_point(
input_file_name.to_str().unwrap()
);

info!(LOG, "command_str: {}", command_str);

let mut proc = tokio::process::Command::new("yarn")
.args(command_str.split_whitespace())
.spawn()?;

let status = proc.wait().await?;
info!(LOG, "status: {:?}", status);
assert!(status.success());

let result = read_to_string(&input_file_name).await?;
Expand Down

0 comments on commit 7e37754

Please sign in to comment.