don't unwrap an error
This commit is contained in:
parent
95045ec78e
commit
1fecfd8821
@ -246,13 +246,19 @@ async fn handle_socket_payload(
|
|||||||
Ok(response.into())
|
Ok(response.into())
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
let (response, _) = app
|
let x = app
|
||||||
.proxy_web3_rpc(authorization.clone(), json_request.into())
|
.proxy_web3_rpc(authorization.clone(), json_request.into())
|
||||||
.await
|
.await
|
||||||
// TODO: DO NOT UNWRAP HERE! ANY FAILING MESSAGES WILL KEPP THE CONNECTION!
|
// TODO: DO NOT UNWRAP HERE! ANY FAILING MESSAGES SHOULD KEEP THE CONNECTION!
|
||||||
.unwrap();
|
.map_or_else(
|
||||||
|
|err| {
|
||||||
|
// need to think about this
|
||||||
|
todo!("do something to convert FrontendErrorResponse into a JsonRpcForwardedResponseEnum");
|
||||||
|
},
|
||||||
|
|(response, _)| response
|
||||||
|
);
|
||||||
|
|
||||||
Ok(response)
|
Ok(x)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user