Upgrade to jsonrpc v14 (#11151)

* Upgrade to jsonrpc v14

Contains https://github.com/paritytech/jsonrpc/pull/495 with good bugfixes to resource usage.

* Bump tokio & futures.

* Bump even further.

* Upgrade tokio to 0.1.22

* Partially revert "Bump tokio & futures."

This reverts commit 100907eb91907aa124d856d52374637256118e86.
This commit is contained in:
David
2019-10-10 16:56:22 +02:00
committed by Seun LanLege
parent 330cdc1a4d
commit 9d313e31e6
11 changed files with 178 additions and 146 deletions

View File

@@ -8,8 +8,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
ethereum-types = "0.8.0"
keccak-hash = "0.4.0"
jsonrpc-core = "13.2.0"
jsonrpc-tcp-server = "13.2.0"
jsonrpc-core = "14.0.0"
jsonrpc-tcp-server = "14.0.0"
log = "0.4"
parking_lot = "0.9"

View File

@@ -497,4 +497,11 @@ mod tests {
"{ \"id\": 17, \"method\": \"mining.notify\", \"params\": { \"00040008\", \"100500\" } }\n",
response);
}
#[test]
fn jsonprc_server_is_send_and_sync() {
fn is_send_and_sync<T: Send + Sync>() {}
is_send_and_sync::<JsonRpcServer>();
}
}