Error handle

This commit is contained in:
Toan Pham 2024-10-15 21:34:06 +07:00
parent 4e7066d972
commit c873b613d3

View File

@ -32,7 +32,7 @@ use nexus_core::{
init_circuit_trace, key::CanonicalSerialize, pp::gen_vm_pp, prove_seq_step, types::*, init_circuit_trace, key::CanonicalSerialize, pp::gen_vm_pp, prove_seq_step, types::*,
}, },
}; };
use std::env; // use std::env;
use zstd::stream::Encoder; use zstd::stream::Encoder;
use rand::{ RngCore }; use rand::{ RngCore };
@ -125,10 +125,12 @@ async fn main() {
)), )),
}; };
client if let Err(e) = client
.send(Message::Binary(registration.encode_to_vec())) .send(Message::Binary(registration.encode_to_vec()))
.await .await
.unwrap(); {
eprintln!("Failed to send message: {:?}", e);
}
track( track(
"register".into(), "register".into(),