From d65715dee683c38d4dea1e60b9bdb6bc7ed8e5e5 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Sun, 5 Sep 2021 20:38:45 +0000 Subject: [PATCH] Remove example room ID from tonic_client --- dicebot/src/bin/tonic_client.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dicebot/src/bin/tonic_client.rs b/dicebot/src/bin/tonic_client.rs index 11d8ae6..e41de5c 100644 --- a/dicebot/src/bin/tonic_client.rs +++ b/dicebot/src/bin/tonic_client.rs @@ -23,21 +23,11 @@ async fn create_client( async fn main() -> Result<(), Box> { let mut client = create_client("example-key").await?; - // let request = tonic::Request::new(GetVariableRequest { - // user_id: "@projectmoon:agnos.is".into(), - // room_id: "!agICWvldGfuCywUVUM:agnos.is".into(), - // variable_name: "stuff".into(), - // }); - - // let response = client.get_variable(request).await?.into_inner(); - let request = tonic::Request::new(UserIdRequest { user_id: "@projectmoon:agnos.is".into(), }); let response = client.rooms_for_user(request).await?.into_inner(); - // println!("RESPONSE={:?}", response); - // println!("User friendly response is: {:?}", response.value); println!("Rooms: {:?}", response.rooms); Ok(()) }