Skip to content

Commit

Permalink
fix revert error
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Nov 22, 2023
1 parent 01d42bc commit 854a708
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions src/rpc/tungstenite_client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,8 @@ pub fn do_reconnect(error: &RpcClientError) -> bool {
)
}

<<<<<<< HEAD
fn send_message_to_client(
result_in: ThreadOut<String>,
message: &str,
subscription_id: &str,
) -> Result<()> {
trace!("got on_subscription_msg {}", message);
=======
fn send_message_to_client(result_in: ThreadOut<String>, message: &str) -> Result<()> {
debug!("got on_subscription_msg {}", message);
>>>>>>> parent of be3e1f7... Add subscription ID recognition to tungstenite and ws-rpc client (#662)
let value: Value = serde_json::from_str(message)?;

match value["id"].as_str() {
Expand Down
5 changes: 0 additions & 5 deletions src/rpc/ws_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,8 @@ impl HandleMessage for SubscriptionHandler {
let out = &context.out;
let msg = &context.msg;

<<<<<<< HEAD
trace!("got on_subscription_msg {}", msg);
let value: serde_json::Value = serde_json::from_str(msg).map_err(Box::new)?;
=======
info!("got on_subscription_msg {}", msg);
let value: serde_json::Value = serde_json::from_str(msg.as_text()?).map_err(Box::new)?;
>>>>>>> parent of be3e1f7... Add subscription ID recognition to tungstenite and ws-rpc client (#662)

match value["id"].as_str() {
Some(_idstr) => {
Expand Down

0 comments on commit 854a708

Please sign in to comment.