imports and print response!!
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user