#[allow(unused_variables)] // xxx
async fn run_client<C>(ic: InstanceConfig, hclient: Arc<hyper::Client<C>>)
-> Result<Void, AE>
-where C: hyper::client::connect::Connect + Clone + Send + Sync,
+where C: hyper::client::connect::Connect + Clone + Send + Sync + 'static,
{
debug!("{}: config: {:?}", &ic, &ic);
let body = hyper::body::Body::wrap_stream(
futures::stream::iter(
Itertools::intersperse(
- upbound.into_iter().map(|u| Cow::from(u)),
- Cow::from(&[SLIP_END] as &'static [u8])
- ).map(Ok)
+ upbound.into_iter().map(|u| Bytes::from(u)),
+ slip::SLIP_END_SLICE.into()
+ ).map(Ok::<_,Void>)
)
);
pub use extend::ext;
pub use fehler::{throw, throws};
pub use futures::{poll, future};
-pub use hyper::body::{Buf as _};
+pub use hyper::body::{Bytes, Buf as _};
pub use hyper::Uri;
pub use hyper_tls::HttpsConnector;
pub use ipnet::IpNet;