Make Stream impls part of optional 'stream' cargo feature (#397)
This commit is contained in:
committed by
Carl Lerche
parent
f31ec5d0da
commit
a1db5428db
@@ -5,7 +5,7 @@ authors = ["Carl Lerche <me@carllerche.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
h2 = { path = "../..", features = ["unstable"] }
|
||||
h2 = { path = "../..", features = ["stream", "unstable"] }
|
||||
|
||||
bytes = "0.4.7"
|
||||
env_logger = "0.5.9"
|
||||
|
||||
@@ -239,7 +239,9 @@ async fn abrupt_shutdown() {
|
||||
srv.abrupt_shutdown(Reason::INTERNAL_ERROR);
|
||||
|
||||
let srv_fut = async move {
|
||||
poll_fn(move |cx| srv.poll_close(cx)).await.expect("server");
|
||||
poll_fn(move |cx| srv.poll_closed(cx))
|
||||
.await
|
||||
.expect("server");
|
||||
};
|
||||
|
||||
join(req_fut, srv_fut).await;
|
||||
|
||||
Reference in New Issue
Block a user