rpc changes

This commit is contained in:
2025-05-04 11:29:32 -04:00
parent d0cc8be566
commit 04d18c48b9
3 changed files with 28 additions and 6 deletions

View File

@@ -3,13 +3,13 @@ use std::sync::RwLock;
use aoba::{aoba_rpc_client::AobaRpcClient, auth_rpc_client::AuthRpcClient};
use tonic_web_wasm_client::Client;
use crate::HOST;
pub mod aoba {
tonic::include_proto!("aoba");
tonic::include_proto!("aoba.auth");
}
const HOST: &'static str = "http://localhost:5164";
static RPC_CLIENT: RpcConnection = RpcConnection {
aoba: RwLock::new(None),
auth: RwLock::new(None),