imports and print response!!

This commit is contained in:
2026-04-13 08:02:52 +02:00
parent f90b670cb5
commit 4a73819d67

View File

@@ -1,5 +1,8 @@
use client::{stream_list::v3_data_live_chat_message_service_client::V3DataLiveChatMessageServiceClient};
use tonic::transport::Channel;
use client::stream_list::{
LiveChatMessageListRequest,
v3_data_live_chat_message_service_client::V3DataLiveChatMessageServiceClient,
};
use tonic::{metadata::{errors::InvalidMetadataValue, MetadataValue}, transport::Channel, Request};
mod client;
@@ -24,13 +27,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
profile_image_size: None,
});
// let request = tonic::Request::new(LiveChatMessageListRequest {
// name: "Tonic".into(),
// });
let response = client.stream_list(request).await?;
// let response = client.say_hello(request).await?;
// println!("RESPONSE={:?}", response);
println!("RESPONSE={:?}", response);
Ok(())
}