Remove more tODO's
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
use structopt::StructOpt;
|
||||
use tonic::transport::{Identity, Server};
|
||||
use tonic_interop::{server, MergeTrailers};
|
||||
// TODO: move GrpcService out of client since it can be used for the
|
||||
// server too.
|
||||
use http::header::HeaderName;
|
||||
use structopt::StructOpt;
|
||||
use tonic::body::BoxBody;
|
||||
use tonic::client::GrpcService;
|
||||
use tonic::transport::{Identity, Server};
|
||||
use tonic_interop::{server, MergeTrailers};
|
||||
|
||||
#[derive(StructOpt)]
|
||||
struct Opts {
|
||||
|
||||
@@ -170,7 +170,6 @@ pub async fn ping_pong(client: &mut TestClient, assertions: &mut Vec<TestAsserti
|
||||
loop {
|
||||
match response.next().await {
|
||||
Some(result) => {
|
||||
// TODO: what to do with this result?
|
||||
responses.push(result.unwrap());
|
||||
if responses.len() == REQUEST_LENGTHS.len() {
|
||||
drop(tx);
|
||||
@@ -360,7 +359,6 @@ pub async fn custom_metadata(client: &mut TestClient, assertions: &mut Vec<TestA
|
||||
req_unary.metadata_mut().insert(key1, value1.clone());
|
||||
req_unary.metadata_mut().insert_bin(key2, value2.clone());
|
||||
|
||||
// TODO: custom metadata for fullduplex
|
||||
let stream = stream::iter(vec![Ok(make_ping_pong_request(0))]);
|
||||
let mut req_stream = Request::new(stream);
|
||||
req_stream.metadata_mut().insert(key1, value1.clone());
|
||||
|
||||
@@ -142,7 +142,6 @@ impl pb::server::TestService for TestService {
|
||||
&self,
|
||||
_: Streaming<StreamingOutputCallRequest>,
|
||||
) -> Result<Self::HalfDuplexCallStream> {
|
||||
// TODO: implement half duplex
|
||||
Err(Status::unimplemented("TODO"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user