diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1035cef..8ac0dea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - rust: [nightly-2019-09-03] + rust: [nightly] steps: - uses: hecrj/setup-rust-action@master diff --git a/rust-toolchain b/rust-toolchain index bf867e0..aa5f514 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly +nightly-2019-09-04 diff --git a/tonic-interop/src/bin/server.rs b/tonic-interop/src/bin/server.rs index 9acfa22..66327ee 100644 --- a/tonic-interop/src/bin/server.rs +++ b/tonic-interop/src/bin/server.rs @@ -1,14 +1,7 @@ use structopt::StructOpt; use tonic::{Code, Request, Response, Status, Server}; use std::pin::Pin; - -pub mod pb { - #![allow(dead_code)] - #![allow(unused_imports)] - include!(concat!(env!("OUT_DIR"), "/grpc.testing.rs")); -} - -use pb::*; +use tonic_interop::pb::*; #[derive(Default, Clone)] pub struct TestService { @@ -20,7 +13,7 @@ type Streaming = Request>; type Stream = Pin> + Send + 'static>>; #[tonic::async_trait] -impl pb::TestService for TestService { +impl tonic_interop::pb::TestService for TestService { async fn empty_call(&self, _request: Request) -> Result { println!("empty_call"); Ok(Response::new(Empty {})) @@ -46,8 +39,8 @@ impl pb::TestService for TestService { return Err(status); }; - let res = pb::SimpleResponse { - payload: Some(pb::Payload { + let res = SimpleResponse { + payload: Some(Payload { body: vec![0; res_size], ..Default::default() }),