Upgrade to tokio 0.2 (#163)

This commit is contained in:
Lucio Franco
2019-12-06 00:09:46 -05:00
committed by GitHub
parent 4471a5f19c
commit 3387ef900f
30 changed files with 297 additions and 282 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ pub(crate) fn generate(service: &Service, proto: &str) -> TokenStream {
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
<T::ResponseBody as HttpBody>::Data: Into<bytes::Bytes> + Send, {
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }