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
@@ -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")
}
}