This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate Tokio Runtime use, remove
CpuPool
.
* Rename and move the `tokio_reactor` crate (`util/reactor`) to `tokio_runtime` (`util/runtime`). * Rename `EventLoop` to `Runtime`. - Rename `EventLoop::spawn` to `Runtime::with_default_thread_count`. - Add the `Runtime::with_thread_count` method. - Rename `Remote` to `Executor`. * Remove uses of `CpuPool` and spawn all tasks via the `Runtime` executor instead. * Other changes related to `CpuPool` removal: - Remove `Reservations::with_pool`. `::new` now takes an `Executor` as an argument. - Remove `SenderReservations::with_pool`. `::new` now takes an `Executor` as an argument.
- Loading branch information
Showing
46 changed files
with
486 additions
and
508 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ authors = ["Parity Technologies <[email protected]>"] | |
[dependencies] | ||
ethereum-types = "0.4" | ||
keccak-hash = "0.1" | ||
jsonrpc-core = { git = "https://github.com/c0gent/jsonrpc.git", branch = "c0gent-hyper" } | ||
jsonrpc-macros = { git = "https://github.com/c0gent/jsonrpc.git", branch = "c0gent-hyper" } | ||
jsonrpc-tcp-server = { git = "https://github.com/c0gent/jsonrpc.git", branch = "c0gent-hyper" } | ||
jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-2.2" } | ||
jsonrpc-macros = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-2.2" } | ||
jsonrpc-tcp-server = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-2.2" } | ||
log = "0.4" | ||
parking_lot = "0.6" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ authors = ["Parity Technologies <[email protected]>"] | |
|
||
[dependencies] | ||
futures = "0.1" | ||
futures-cpupool = "0.1" | ||
log = "0.4" | ||
mime = "0.3" | ||
mime_guess = "2.0.0-alpha.2" | ||
|
@@ -17,7 +16,7 @@ rustc-hex = "1.0" | |
fetch = { path = "../util/fetch" } | ||
parity-bytes = "0.1" | ||
ethereum-types = "0.4" | ||
parity-reactor = { path = "../util/reactor" } | ||
parity-runtime = { path = "../util/runtime" } | ||
keccak-hash = "0.1" | ||
registrar = { path = "../registrar" } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ authors = ["Parity Technologies <[email protected]>"] | |
ethcore = { path = "../ethcore" } | ||
parity-bytes = "0.1" | ||
ethereum-types = "0.4" | ||
jsonrpc-core = { git = "https://github.com/c0gent/jsonrpc.git", branch = "c0gent-hyper" } | ||
jsonrpc-http-server = { git = "https://github.com/c0gent/jsonrpc.git", branch = "c0gent-hyper" } | ||
jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-2.2" } | ||
jsonrpc-http-server = { git = "https://github.com/paritytech/jsonrpc.git", branch = "parity-2.2" } | ||
rlp = { version = "0.3.0", features = ["ethereum"] } | ||
cid = "0.3" | ||
multihash = "0.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ authors = ["Parity Technologies <[email protected]>"] | |
ethash = { path = "../ethash", optional = true } | ||
fetch = { path = "../util/fetch", optional = true } | ||
hyper = { version = "0.12", optional = true } | ||
parity-reactor = { path = "../util/reactor", optional = true } | ||
url = { version = "1", optional = true } | ||
|
||
# Miner | ||
|
@@ -20,7 +19,7 @@ error-chain = "0.12" | |
ethcore-transaction = { path = "../ethcore/transaction" } | ||
ethereum-types = "0.4" | ||
futures = "0.1" | ||
futures-cpupool = "0.1" | ||
parity-runtime = { path = "../util/runtime" } | ||
heapsize = "0.4" | ||
keccak-hash = "0.1" | ||
linked-hash-map = "0.5" | ||
|
@@ -37,4 +36,4 @@ ethkey = { path = "../ethkey" } | |
rustc-hex = "1.0" | ||
|
||
[features] | ||
work-notify = ["ethash", "fetch", "hyper", "parity-reactor", "url"] | ||
work-notify = ["ethash", "fetch", "hyper", "url"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.