init bruv
This commit is contained in:
20
src/main.rs
Normal file
20
src/main.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
use client::{stream_list::v3_data_live_chat_message_service_client::V3DataLiveChatMessageServiceClient};
|
||||
use tonic::transport::Channel;
|
||||
|
||||
mod client;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let channel = Channel::from_static("dns:///youtube.googleapis.com:443");
|
||||
let mut client = V3DataLiveChatMessageServiceClient::connect("http://[::1]:50051").await?;
|
||||
|
||||
// let request = tonic::Request::new(LiveChatMessageListRequest {
|
||||
// name: "Tonic".into(),
|
||||
// });
|
||||
|
||||
// let response = client.say_hello(request).await?;
|
||||
|
||||
// println!("RESPONSE={:?}", response);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user