chore(client): re-enable client's custom executor config

This commit is contained in:
Sean McArthur
2019-07-19 14:18:10 -07:00
parent 283522b15a
commit 1d00bb29d4
3 changed files with 22 additions and 12 deletions

View File

@@ -453,16 +453,15 @@ impl Builder {
}
}
/*
/// Provide an executor to execute background HTTP2 tasks.
pub fn executor<E>(&mut self, exec: E) -> &mut Builder
where
E: Executor<Box<dyn Future<Item=(), Error=()> + Send>> + Send + Sync + 'static,
for<'a> &'a E: tokio_executor::Executor,
E: Send + Sync + 'static,
{
self.exec = Exec::Executor(Arc::new(exec));
self
}
*/
pub(super) fn h1_writev(&mut self, enabled: bool) -> &mut Builder {
self.h1_writev = enabled;