Implement cancel

This commit is contained in:
Gregory Schier
2024-02-02 00:18:37 -08:00
parent b526ea506b
commit 4e781b752d
7 changed files with 121 additions and 133 deletions

View File

@@ -78,7 +78,6 @@ impl GrpcConnection {
let path = method_desc_to_path(method);
let codec = DynamicCodec::new(method.clone());
client.ready().await.unwrap();
Ok(client
.server_streaming(req, path, codec)
.await

View File

@@ -36,12 +36,6 @@ pub async fn fill_pool(
.http2_only(true)
.build(connector);
println!(
"URI uri={} host={:?} authority={:?}",
uri,
uri.host(),
uri.authority()
);
let mut client = ServerReflectionClient::with_origin(transport.clone(), uri.clone());
let services = list_services(&mut client).await;