Skip to content

Commit

Permalink
Replace rustls with boring-ssl
Browse files Browse the repository at this point in the history
This removes all re-attempts present in monero-serai's RPC and is an attempt to
narrow down the sporadic failures.

Inspired by hyperium/hyper#3427
  • Loading branch information
kayabaNerve committed Nov 26, 2023
1 parent c6c7468 commit 74f29f9
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 136 deletions.
138 changes: 135 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion coins/bitcoin/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ impl Rpc {
/// provided to this library, if the RPC has an incompatible argument layout. That is not checked
/// at time of RPC creation.
pub async fn new(url: String) -> Result<Rpc, RpcError> {
let rpc = Rpc { client: Client::with_connection_pool(), url };
let rpc =
Rpc { client: Client::with_connection_pool().map_err(|_| RpcError::ConnectionError)?, url };

// Make an RPC request to verify the node is reachable and sane
let res: String = rpc.rpc_call("help", json!([])).await?;
Expand Down
Loading

0 comments on commit 74f29f9

Please sign in to comment.