Skip to content

Commit

Permalink
fix client for verify-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Nov 22, 2024
1 parent 609fb10 commit 2eab537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/rust/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ async fn geyser_subscribe(
Some(UpdateOneof::Ping(_)) => (&mut pb_pp_c, &pb_pp),
Some(UpdateOneof::Pong(_)) => (&mut pb_pp_c, &pb_pp),
None => {
error!("update not found in the message");
pb_multi.println("update not found in the message")?;
break;
}
};
Expand Down Expand Up @@ -651,8 +651,8 @@ async fn geyser_subscribe(
let dir = "grpc-client-verify";
let name = SystemTime::now().duration_since(UNIX_EPOCH)?.as_nanos();
let path = format!("{dir}/{name}");
error!("found unmached message, save to `{path}`");
fs::create_dir(dir)
pb_multi.println(format!("found unmached message, save to `{path}`"))?;
fs::create_dir_all(dir)
.await
.context("failed to create dir for unmached")?;
fs::write(path, encoded_prost)
Expand Down

0 comments on commit 2eab537

Please sign in to comment.