feat(client): change GaiResolver to use a global blocking threadpool

BREAKING CHANGE: Calls to `GaiResolver::new` and `HttpConnector::new` no
  longer should pass an integer argument for the number of threads.
This commit is contained in:
Sean McArthur
2019-08-29 13:38:22 -07:00
parent 2664cf505f
commit 049b5132db
7 changed files with 29 additions and 67 deletions

View File

@@ -179,7 +179,7 @@ impl Opts {
let addr = spawn_server(&mut rt, &self);
let connector = HttpConnector::new(1);
let connector = HttpConnector::new();
let client = hyper::Client::builder()
.http2_only(self.http2)
.http2_initial_stream_window_size(self.http2_stream_window)