Skip to content

Commit

Permalink
Merge branch 'oo-refactor'
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jul 6, 2024
2 parents 7156a9b + 91225e8 commit 15dd02a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/v2h_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,12 @@ async fn serve_rpc(ctx: V2hNodeCtx) -> anyhow::Result<()> {
let res = service.respond_raw(req.clone()).await;
// println!("resp = {:?}", res);
let body = serde_json::to_vec(&res)?.into();
rpc_socket.send_to(body, from).await.map_err(|e| {
tracing::error!(err = debug(&e), req = debug(req), "error serving RPC");
e
})?;
rpc_socket.send_to(body, from).await?;
// println!("successfully sent rpc response");
anyhow::Ok(())
};
if let Err(err) = fallible.await {
tracing::error!(err = debug(err), "error serving RPC");
tracing::debug!(err = debug(err), "error serving RPC");
}
}
}
Expand Down

0 comments on commit 15dd02a

Please sign in to comment.