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