mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +00:00
Prune some duplicated dependencies in the dep graph (#11433)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@@ -38,6 +38,6 @@ sp-keystore = { version = "0.12.0", path = "../../primitives/keystore" }
|
||||
sp-runtime = { version = "6.0.0", path = "../../primitives/runtime" }
|
||||
|
||||
[dev-dependencies]
|
||||
quickcheck = "1.0.3"
|
||||
quickcheck = { version = "1.0.3", default-features = false }
|
||||
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
|
||||
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
|
||||
|
||||
@@ -36,7 +36,7 @@ sp-trie = { version = "6.0.0", path = "../../primitives/trie" }
|
||||
|
||||
[dev-dependencies]
|
||||
kvdb-rocksdb = "0.15.1"
|
||||
quickcheck = "1.0.3"
|
||||
quickcheck = { version = "1.0.3", default-features = false }
|
||||
tempfile = "3"
|
||||
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
|
||||
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
|
||||
|
||||
@@ -27,5 +27,5 @@ sp-runtime = { version = "6.0.0", path = "../../primitives/runtime" }
|
||||
|
||||
[dev-dependencies]
|
||||
async-std = "1.11.0"
|
||||
quickcheck = "1.0.3"
|
||||
quickcheck = { version = "1.0.3", default-features = false }
|
||||
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
|
||||
|
||||
@@ -65,7 +65,6 @@ sp-runtime = { version = "6.0.0", path = "../../primitives/runtime" }
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.3"
|
||||
async-std = "1.11.0"
|
||||
quickcheck = "1.0.3"
|
||||
rand = "0.7.2"
|
||||
tempfile = "3.1.0"
|
||||
sp-test-primitives = { version = "2.0.0", path = "../../primitives/test-primitives" }
|
||||
|
||||
@@ -42,7 +42,7 @@ sp-finality-grandpa = { version = "4.0.0-dev", path = "../../../primitives/final
|
||||
sp-runtime = { version = "6.0.0", path = "../../../primitives/runtime" }
|
||||
|
||||
[dev-dependencies]
|
||||
quickcheck = "1.0.3"
|
||||
quickcheck = { version = "1.0.3", default-features = false }
|
||||
sc-block-builder = { version = "0.10.0-dev", path = "../../block-builder" }
|
||||
sp-test-primitives = { version = "2.0.0", path = "../../../primitives/test-primitives" }
|
||||
sp-tracing = { version = "5.0.0", path = "../../../primitives/tracing" }
|
||||
|
||||
@@ -20,7 +20,7 @@ futures = "0.3.21"
|
||||
futures-timer = "3.0.2"
|
||||
hex = "0.4"
|
||||
hyper = { version = "0.14.16", features = ["stream", "http2"] }
|
||||
hyper-rustls = "0.22.1"
|
||||
hyper-rustls = { version = "0.23.0", features = ["http2"] }
|
||||
num_cpus = "1.13"
|
||||
once_cell = "1.8"
|
||||
parking_lot = "0.12.0"
|
||||
|
||||
@@ -32,7 +32,7 @@ use bytes::buf::{Buf, Reader};
|
||||
use fnv::FnvHashMap;
|
||||
use futures::{channel::mpsc, future, prelude::*};
|
||||
use hyper::{client, Body, Client as HyperClient};
|
||||
use hyper_rustls::HttpsConnector;
|
||||
use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};
|
||||
use once_cell::sync::Lazy;
|
||||
use sc_utils::mpsc::{tracing_unbounded, TracingUnboundedReceiver, TracingUnboundedSender};
|
||||
use sp_core::offchain::{HttpError, HttpRequestId, HttpRequestStatus, Timestamp};
|
||||
@@ -53,7 +53,13 @@ pub struct SharedClient(Arc<Lazy<HyperClient<HttpsConnector<client::HttpConnecto
|
||||
impl SharedClient {
|
||||
pub fn new() -> Self {
|
||||
Self(Arc::new(Lazy::new(|| {
|
||||
HyperClient::builder().build(HttpsConnector::with_native_roots())
|
||||
let connector = HttpsConnectorBuilder::new()
|
||||
.with_native_roots()
|
||||
.https_or_http()
|
||||
.enable_http1()
|
||||
.enable_http2()
|
||||
.build();
|
||||
HyperClient::builder().build(connector)
|
||||
})))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user