From fa44647d23308b7a11f08729038441bf4616020f Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Wed, 31 May 2023 12:28:14 +0100 Subject: [PATCH] chore: comment out example which is specific to api... Signed-off-by: Tiago Castro --- .../examples/tower-client-main.mustache | 18 +++++++++--------- .../tower-hyper/client/client.mustache | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/rust-mayastor/examples/tower-client-main.mustache b/modules/openapi-generator/src/main/resources/rust-mayastor/examples/tower-client-main.mustache index 51f1af09b6ef..81bcf70f1dfb 100644 --- a/modules/openapi-generator/src/main/resources/rust-mayastor/examples/tower-client-main.mustache +++ b/modules/openapi-generator/src/main/resources/rust-mayastor/examples/tower-client-main.mustache @@ -33,14 +33,14 @@ async fn main() { Some(1), ) .unwrap(); - let client = openapi::clients::tower::ApiClient::new(config); + let _client = openapi::clients::tower::ApiClient::new(config); - match client.nodes_api().get_nodes().await { - Ok(resp) => { - println!("resp: {resp:#?}"); - } - Err(resp) => { - println!("resp: {resp:#?}"); - } - } + // match client.nodes_api().get_nodes().await { + // Ok(resp) => { + // println!("resp: {resp:#?}"); + // } + // Err(resp) => { + // println!("resp: {resp:#?}"); + // } + // } } diff --git a/modules/openapi-generator/src/main/resources/rust-mayastor/tower-hyper/client/client.mustache b/modules/openapi-generator/src/main/resources/rust-mayastor/tower-hyper/client/client.mustache index a7473719ff58..6e71a07fe1cc 100644 --- a/modules/openapi-generator/src/main/resources/rust-mayastor/tower-hyper/client/client.mustache +++ b/modules/openapi-generator/src/main/resources/rust-mayastor/tower-hyper/client/client.mustache @@ -19,7 +19,7 @@ pub struct ApiClient { {{/apiInfo}} } -/// Same as `ApiClient` but returns the body directly +/// Same as `ApiClient` but returns the body directly. pub mod direct { #[derive(Clone)] pub struct ApiClient {