Optimize offchain worker api by re-using http-client (#6454)

* Fix typo in offchain's docs

* Use Self keyword in AsyncApi::new()

* Move httpclient to be part of OffchainWorkers to optimize block import

* Fix compilation errors for tests

* Add wrapper struct for HyperClient

* Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit

* Revert "Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit"

This reverts commit 7af97498a2383b5d7405e27823db8fd97245da41.

* Add lazy_static for tests
This commit is contained in:
pscott
2020-06-23 12:09:47 +02:00
committed by GitHub
parent bb2df2122e
commit ceb0fa6358
6 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -6573,12 +6573,12 @@ version = "2.0.0-rc3"
dependencies = [
"bytes 0.5.4",
"env_logger 0.7.1",
"fdlimit",
"fnv",
"futures 0.3.4",
"futures-timer 3.0.2",
"hyper 0.13.4",
"hyper-rustls",
"lazy_static",
"log",
"num_cpus",
"parity-scale-codec",