update jsonrpsee to 0.2.0-alpha.5 (#8644)

This commit is contained in:
Niklas Adolfsson
2021-04-21 12:59:15 +02:00
committed by GitHub
parent 54ae55f439
commit 70f008b9f1
3 changed files with 24 additions and 24 deletions
@@ -13,10 +13,8 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
jsonrpsee-http-client = { version = "=0.2.0-alpha.3", default-features = false, features = ["tokio02"] }
# Needed by jsonrpsee-proc-macros: https://github.com/paritytech/jsonrpsee/issues/214
jsonrpsee-types = "=0.2.0-alpha.3"
jsonrpsee-proc-macros = "=0.2.0-alpha.3"
jsonrpsee-http-client = { version = "=0.2.0-alpha.5", default-features = false, features = ["tokio02"] }
jsonrpsee-proc-macros = "=0.2.0-alpha.5"
hex-literal = "0.3.1"
env_logger = "0.8.2"
@@ -113,7 +113,7 @@ use sp_core::{
storage::{StorageKey, StorageData},
};
use codec::{Encode, Decode};
use jsonrpsee_http_client::{HttpClient, HttpConfig};
use jsonrpsee_http_client::{HttpClient, HttpClientBuilder};
use sp_runtime::traits::Block as BlockT;
@@ -173,7 +173,7 @@ impl<B: BlockT> Default for OnlineConfig<B> {
impl<B: BlockT> OnlineConfig<B> {
/// Return a new http rpc client.
fn rpc(&self) -> HttpClient {
HttpClient::new(&self.uri, HttpConfig { max_request_body_size: u32::MAX })
HttpClientBuilder::default().max_request_body_size(u32::MAX).build(&self.uri)
.expect("valid HTTP url; qed")
}
}