mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 09:45:41 +00:00
*: update rand to v0.8.5 (#12962)
* *: update rand to v0.8.5 * *: remove useless deps from Cargo.toml * fix pallet-session-benchmarking * fix pallet-election-provider-support test * remove useless rand from dev-dependencies
This commit is contained in:
@@ -19,7 +19,6 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features =
|
||||
] }
|
||||
fnv = "1.0.6"
|
||||
futures = "0.3.21"
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
log = "0.4.17"
|
||||
parking_lot = "0.12.1"
|
||||
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" }
|
||||
@@ -36,7 +35,6 @@ sp-keystore = { version = "0.13.0", default-features = false, path = "../../prim
|
||||
sp-runtime = { version = "7.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||
sp-state-machine = { version = "0.13.0", path = "../../primitives/state-machine" }
|
||||
sp-storage = { version = "7.0.0", path = "../../primitives/storage" }
|
||||
sp-trie = { version = "7.0.0", path = "../../primitives/trie" }
|
||||
|
||||
[dev-dependencies]
|
||||
thiserror = "1.0.30"
|
||||
|
||||
@@ -24,7 +24,7 @@ ip_network = "0.4.1"
|
||||
libp2p = { version = "0.49.0", default-features = false, features = ["kad"] }
|
||||
log = "0.4.17"
|
||||
prost = "0.11"
|
||||
rand = "0.7.2"
|
||||
rand = "0.8.5"
|
||||
thiserror = "1.0"
|
||||
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
|
||||
@@ -14,17 +14,14 @@ async-trait = "0.1.57"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
|
||||
fnv = "1.0.6"
|
||||
futures = "0.3"
|
||||
futures-timer = "3.0.1"
|
||||
log = "0.4"
|
||||
parking_lot = "0.12.1"
|
||||
thiserror = "1.0"
|
||||
wasm-timer = "0.2.5"
|
||||
beefy-primitives = { version = "4.0.0-dev", path = "../../primitives/beefy", package = "sp-beefy" }
|
||||
prometheus = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" }
|
||||
sc-chain-spec = { version = "4.0.0-dev", path = "../../client/chain-spec" }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
sc-consensus = { version = "0.10.0-dev", path = "../consensus/common" }
|
||||
sc-finality-grandpa = { version = "0.10.0-dev", path = "../../client/finality-grandpa" }
|
||||
sc-keystore = { version = "4.0.0-dev", path = "../keystore" }
|
||||
sc-network = { version = "0.10.0-dev", path = "../network" }
|
||||
sc-network-common = { version = "0.10.0-dev", path = "../network/common" }
|
||||
|
||||
@@ -19,7 +19,6 @@ thiserror = "1.0"
|
||||
beefy-gadget = { version = "4.0.0-dev", path = "../." }
|
||||
beefy-primitives = { version = "4.0.0-dev", path = "../../../primitives/beefy", package = "sp-beefy" }
|
||||
sc-rpc = { version = "4.0.0-dev", path = "../../rpc" }
|
||||
sc-utils = { version = "4.0.0-dev", path = "../../utils" }
|
||||
sp-core = { version = "7.0.0", path = "../../../primitives/core" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@ readme = "README.md"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
||||
impl-trait-for-tuples = "0.2.2"
|
||||
memmap2 = "0.5.0"
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
serde_json = "1.0.85"
|
||||
|
||||
@@ -22,13 +22,13 @@ libp2p = "0.49.0"
|
||||
log = "0.4.17"
|
||||
names = { version = "0.13.0", default-features = false }
|
||||
parity-scale-codec = "3.0.0"
|
||||
rand = "0.7.3"
|
||||
rand = "0.8.5"
|
||||
regex = "1.6.0"
|
||||
rpassword = "7.0.0"
|
||||
serde = "1.0.136"
|
||||
serde_json = "1.0.85"
|
||||
thiserror = "1.0.30"
|
||||
tiny-bip39 = "0.8.2"
|
||||
tiny-bip39 = "1.0.0"
|
||||
tokio = { version = "1.22.0", features = ["signal", "rt-multi-thread", "parking_lot"] }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
sc-client-db = { version = "0.10.0-dev", default-features = false, path = "../db" }
|
||||
|
||||
@@ -24,7 +24,6 @@ num-rational = "0.4.1"
|
||||
num-traits = "0.2.8"
|
||||
parking_lot = "0.12.1"
|
||||
schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated"] }
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
thiserror = "1.0"
|
||||
fork-tree = { version = "3.0.0", path = "../../../utils/fork-tree" }
|
||||
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../../utils/prometheus" }
|
||||
@@ -44,10 +43,8 @@ sp-consensus-slots = { version = "0.10.0-dev", path = "../../../primitives/conse
|
||||
sp-consensus-vrf = { version = "0.10.0-dev", path = "../../../primitives/consensus/vrf" }
|
||||
sp-core = { version = "7.0.0", path = "../../../primitives/core" }
|
||||
sp-inherents = { version = "4.0.0-dev", path = "../../../primitives/inherents" }
|
||||
sp-io = { version = "7.0.0", path = "../../../primitives/io" }
|
||||
sp-keystore = { version = "0.13.0", path = "../../../primitives/keystore" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
||||
sp-version = { version = "5.0.0", path = "../../../primitives/version" }
|
||||
|
||||
[dev-dependencies]
|
||||
rand_chacha = "0.2.2"
|
||||
|
||||
@@ -19,7 +19,6 @@ codec = { package = "parity-scale-codec", version = "3.0.0" }
|
||||
futures = "0.3.21"
|
||||
futures-timer = "3.0.1"
|
||||
log = "0.4.17"
|
||||
thiserror = "1.0.30"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../../api" }
|
||||
sc-consensus = { version = "0.10.0-dev", path = "../../../client/consensus/common" }
|
||||
sc-telemetry = { version = "4.0.0-dev", path = "../../telemetry" }
|
||||
|
||||
@@ -37,7 +37,7 @@ sp-trie = { version = "7.0.0", path = "../../primitives/trie" }
|
||||
[dev-dependencies]
|
||||
criterion = "0.3.3"
|
||||
kvdb-rocksdb = "0.17.0"
|
||||
rand = "0.8.4"
|
||||
rand = "0.8.5"
|
||||
tempfile = "3.1.0"
|
||||
quickcheck = { version = "1.0.3", default-features = false }
|
||||
kitchensink-runtime = { path = "../../bin/node/runtime" }
|
||||
|
||||
@@ -24,7 +24,7 @@ futures-timer = "3.0.1"
|
||||
log = "0.4.17"
|
||||
parity-scale-codec = { version = "3.0.0", features = ["derive"] }
|
||||
parking_lot = "0.12.1"
|
||||
rand = "0.8.4"
|
||||
rand = "0.8.5"
|
||||
serde_json = "1.0.85"
|
||||
thiserror = "1.0"
|
||||
fork-tree = { version = "3.0.0", path = "../../utils/fork-tree" }
|
||||
@@ -33,7 +33,6 @@ sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }
|
||||
sc-chain-spec = { version = "4.0.0-dev", path = "../../client/chain-spec" }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
sc-consensus = { version = "0.10.0-dev", path = "../consensus/common" }
|
||||
sc-keystore = { version = "4.0.0-dev", path = "../keystore" }
|
||||
sc-network = { version = "0.10.0-dev", path = "../network" }
|
||||
sc-network-gossip = { version = "0.10.0-dev", path = "../network-gossip" }
|
||||
sc-network-common = { version = "0.10.0-dev", path = "../network/common" }
|
||||
|
||||
@@ -16,7 +16,6 @@ jsonrpsee = { version = "0.16.2", features = ["client-core", "server", "macros"]
|
||||
log = "0.4.8"
|
||||
parity-scale-codec = { version = "3.0.0", features = ["derive"] }
|
||||
serde = { version = "1.0.105", features = ["derive"] }
|
||||
serde_json = "1.0.50"
|
||||
thiserror = "1.0"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../../api" }
|
||||
sc-finality-grandpa = { version = "0.10.0-dev", path = "../" }
|
||||
|
||||
@@ -19,6 +19,5 @@ futures-timer = "3.0.1"
|
||||
log = "0.4.17"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
sc-network-common = { version = "0.10.0-dev", path = "../network/common" }
|
||||
sc-transaction-pool-api = { version = "4.0.0-dev", path = "../transaction-pool/api" }
|
||||
sp-blockchain = { version = "4.0.0-dev", path = "../../primitives/blockchain" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" }
|
||||
|
||||
@@ -20,7 +20,6 @@ sp-api = { version = "4.0.0-dev", path = "../../primitives/api" }
|
||||
sp-blockchain = { version = "4.0.0-dev", path = "../../primitives/blockchain" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../primitives/consensus/common" }
|
||||
sp-core = { version = "7.0.0", path = "../../primitives/core" }
|
||||
sp-io = { version = "7.0.0", path = "../../primitives/io" }
|
||||
sp-mmr-primitives = { version = "4.0.0-dev", path = "../../primitives/merkle-mountain-range" }
|
||||
sc-offchain = { version = "4.0.0-dev", path = "../offchain" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" }
|
||||
|
||||
@@ -17,9 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
array-bytes = "4.1"
|
||||
async-trait = "0.1"
|
||||
asynchronous-codec = "0.6"
|
||||
bitflags = "1.3.2"
|
||||
bytes = "1"
|
||||
cid = "0.8.4"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
|
||||
either = "1.5.3"
|
||||
fnv = "1.0.6"
|
||||
@@ -27,21 +25,17 @@ futures = "0.3.21"
|
||||
futures-timer = "3.0.2"
|
||||
ip_network = "0.4.1"
|
||||
libp2p = { version = "0.49.0", features = ["dns", "identify", "kad", "mdns", "mplex", "noise", "ping", "tcp", "tokio", "yamux", "websocket"] }
|
||||
linked_hash_set = "0.1.3"
|
||||
linked-hash-map = "0.5.4"
|
||||
log = "0.4.17"
|
||||
lru = "0.8.1"
|
||||
parking_lot = "0.12.1"
|
||||
pin-project = "1.0.12"
|
||||
prost = "0.11"
|
||||
rand = "0.7.2"
|
||||
rand = "0.8.5"
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
serde_json = "1.0.85"
|
||||
smallvec = "1.8.0"
|
||||
thiserror = "1.0"
|
||||
unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_codec"] }
|
||||
zeroize = "1.4.3"
|
||||
fork-tree = { version = "3.0.0", path = "../../utils/fork-tree" }
|
||||
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" }
|
||||
sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
@@ -57,7 +51,6 @@ sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" }
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.3"
|
||||
rand = "0.7.2"
|
||||
tempfile = "3.1.0"
|
||||
tokio = { version = "1.22.0", features = ["macros"] }
|
||||
tokio-util = { version = "0.7.4", features = ["compat"] }
|
||||
|
||||
@@ -23,7 +23,6 @@ log = "0.4.17"
|
||||
prost = "0.11"
|
||||
thiserror = "1.0"
|
||||
unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_codec"] }
|
||||
void = "1.0.2"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../../api" }
|
||||
sc-network-common = { version = "0.10.0-dev", path = "../common" }
|
||||
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
|
||||
|
||||
@@ -20,7 +20,7 @@ futures-timer = "3.0.1"
|
||||
libp2p = { version = "0.49.0", default-features = false }
|
||||
log = "0.4.17"
|
||||
parking_lot = "0.12.1"
|
||||
rand = "0.7.2"
|
||||
rand = "0.8.5"
|
||||
sc-block-builder = { version = "0.10.0-dev", path = "../../block-builder" }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../../api" }
|
||||
sc-consensus = { version = "0.10.0-dev", path = "../../consensus/common" }
|
||||
|
||||
@@ -16,7 +16,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
array-bytes = "4.1"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
|
||||
futures = "0.3.21"
|
||||
hex = "0.4.0"
|
||||
libp2p = "0.49.0"
|
||||
log = "0.4.17"
|
||||
pin-project = "1.0.12"
|
||||
|
||||
@@ -25,7 +25,7 @@ libp2p = { version = "0.49.0", default-features = false }
|
||||
num_cpus = "1.13"
|
||||
once_cell = "1.8"
|
||||
parking_lot = "0.12.1"
|
||||
rand = "0.7.2"
|
||||
rand = "0.8.5"
|
||||
threadpool = "1.7"
|
||||
tracing = "0.1.29"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
|
||||
@@ -22,4 +22,4 @@ wasm-timer = "0.2"
|
||||
sc-utils = { version = "4.0.0-dev", path = "../utils" }
|
||||
|
||||
[dev-dependencies]
|
||||
rand = "0.7.2"
|
||||
rand = "0.8.5"
|
||||
|
||||
@@ -14,9 +14,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
||||
futures = "0.3.21"
|
||||
log = "0.4.17"
|
||||
parking_lot = "0.12.1"
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
serde_json = "1.0.85"
|
||||
@@ -26,6 +23,5 @@ sc-transaction-pool-api = { version = "4.0.0-dev", path = "../transaction-pool/a
|
||||
sp-core = { version = "7.0.0", path = "../../primitives/core" }
|
||||
sp-rpc = { version = "6.0.0", path = "../../primitives/rpc" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" }
|
||||
sp-tracing = { version = "6.0.0", path = "../../primitives/tracing" }
|
||||
sp-version = { version = "5.0.0", path = "../../primitives/version" }
|
||||
jsonrpsee = { version = "0.16.2", features = ["server", "client-core", "macros"] }
|
||||
|
||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
jsonrpsee = { version = "0.16.2", features = ["server"] }
|
||||
log = "0.4.17"
|
||||
serde_json = "1.0.85"
|
||||
|
||||
@@ -15,9 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
||||
futures = "0.3.21"
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
jsonrpsee = { version = "0.16.2", features = ["server"] }
|
||||
lazy_static = { version = "1.4.0", optional = true }
|
||||
log = "0.4.17"
|
||||
parking_lot = "0.12.1"
|
||||
serde_json = "1.0.85"
|
||||
@@ -43,7 +41,6 @@ tokio = { version = "1.22.0", optional = true }
|
||||
[dev-dependencies]
|
||||
env_logger = "0.9"
|
||||
assert_matches = "1.3.0"
|
||||
lazy_static = "1.4.0"
|
||||
sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }
|
||||
sc-network = { version = "0.10.0-dev", path = "../network" }
|
||||
sc-network-common = { version = "0.10.0-dev", path = "../network/common" }
|
||||
@@ -54,4 +51,4 @@ sp-io = { version = "7.0.0", path = "../../primitives/io" }
|
||||
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
|
||||
|
||||
[features]
|
||||
test-helpers = ["lazy_static", "tokio"]
|
||||
test-helpers = ["tokio"]
|
||||
|
||||
@@ -25,13 +25,12 @@ runtime-benchmarks = ["sc-client-db/runtime-benchmarks"]
|
||||
jsonrpsee = { version = "0.16.2", features = ["server"] }
|
||||
thiserror = "1.0.30"
|
||||
futures = "0.3.21"
|
||||
rand = "0.7.3"
|
||||
rand = "0.8.5"
|
||||
parking_lot = "0.12.1"
|
||||
log = "0.4.17"
|
||||
futures-timer = "3.0.1"
|
||||
exit-future = "0.2.0"
|
||||
pin-project = "1.0.12"
|
||||
hash-db = "0.15.2"
|
||||
serde = "1.0.136"
|
||||
serde_json = "1.0.85"
|
||||
sc-keystore = { version = "4.0.0-dev", path = "../keystore" }
|
||||
@@ -45,10 +44,8 @@ sp-core = { version = "7.0.0", path = "../../primitives/core" }
|
||||
sp-keystore = { version = "0.13.0", path = "../../primitives/keystore" }
|
||||
sp-session = { version = "4.0.0-dev", path = "../../primitives/session" }
|
||||
sp-state-machine = { version = "0.13.0", path = "../../primitives/state-machine" }
|
||||
sp-application-crypto = { version = "7.0.0", path = "../../primitives/application-crypto" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../primitives/consensus/common" }
|
||||
sc-consensus = { version = "0.10.0-dev", path = "../../client/consensus/common" }
|
||||
sp-inherents = { version = "4.0.0-dev", path = "../../primitives/inherents" }
|
||||
sp-storage = { version = "7.0.0", path = "../../primitives/storage" }
|
||||
sc-network = { version = "0.10.0-dev", path = "../network" }
|
||||
sc-network-bitswap = { version = "0.10.0-dev", path = "../network/bitswap" }
|
||||
@@ -70,13 +67,11 @@ sc-rpc-server = { version = "4.0.0-dev", path = "../rpc-servers" }
|
||||
sc-rpc = { version = "4.0.0-dev", path = "../rpc" }
|
||||
sc-rpc-spec-v2 = { version = "0.10.0-dev", path = "../rpc-spec-v2" }
|
||||
sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }
|
||||
sp-block-builder = { version = "4.0.0-dev", path = "../../primitives/block-builder" }
|
||||
sc-informant = { version = "0.10.0-dev", path = "../informant" }
|
||||
sc-telemetry = { version = "4.0.0-dev", path = "../telemetry" }
|
||||
sc-offchain = { version = "4.0.0-dev", path = "../offchain" }
|
||||
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus", version = "0.10.0-dev" }
|
||||
sc-tracing = { version = "4.0.0-dev", path = "../tracing" }
|
||||
sp-tracing = { version = "6.0.0", path = "../../primitives/tracing" }
|
||||
sc-sysinfo = { version = "6.0.0-dev", path = "../sysinfo" }
|
||||
tracing = "0.1.29"
|
||||
tracing-futures = { version = "0.2.4" }
|
||||
|
||||
@@ -33,8 +33,6 @@ sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
|
||||
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
||||
sp-core = { version = "7.0.0", path = "../../../primitives/core" }
|
||||
sp-externalities = { version = "0.13.0", path = "../../../primitives/externalities" }
|
||||
sp-panic-handler = { version = "5.0.0", path = "../../../primitives/panic-handler" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
||||
sp-state-machine = { version = "0.13.0", path = "../../../primitives/state-machine" }
|
||||
sp-storage = { version = "7.0.0", path = "../../../primitives/storage" }
|
||||
|
||||
@@ -16,5 +16,4 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
|
||||
log = "0.4.17"
|
||||
parking_lot = "0.12.1"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
sp-core = { version = "7.0.0", path = "../../primitives/core" }
|
||||
|
||||
@@ -17,8 +17,8 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
futures = "0.3.19"
|
||||
libc = "0.2"
|
||||
log = "0.4.17"
|
||||
rand = "0.7.3"
|
||||
rand_pcg = "0.2.1"
|
||||
rand = "0.8.5"
|
||||
rand_pcg = "0.3.1"
|
||||
regex = "1"
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
serde_json = "1.0.85"
|
||||
|
||||
@@ -20,7 +20,7 @@ libp2p = { version = "0.49.0", default-features = false, features = ["dns", "tcp
|
||||
log = "0.4.17"
|
||||
parking_lot = "0.12.1"
|
||||
pin-project = "1.0.12"
|
||||
rand = "0.7.2"
|
||||
rand = "0.8.5"
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
serde_json = "1.0.85"
|
||||
thiserror = "1.0.30"
|
||||
|
||||
@@ -76,7 +76,7 @@ enum NodeSocket<TTrans: Transport> {
|
||||
|
||||
impl<TTrans: Transport> NodeSocket<TTrans> {
|
||||
fn wait_reconnect() -> NodeSocket<TTrans> {
|
||||
let random_delay = rand::thread_rng().gen_range(10, 20);
|
||||
let random_delay = rand::thread_rng().gen_range(10..20);
|
||||
let delay = Delay::new(Duration::from_secs(random_delay));
|
||||
log::trace!(target: "telemetry", "Pausing for {} secs before reconnecting", random_delay);
|
||||
NodeSocket::WaitingReconnect(delay)
|
||||
|
||||
Reference in New Issue
Block a user