-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
https://github.com/smallnest/rpcx-rs/blob/master/rpcx_client/src/client.rs
pub fn call<T>(
&mut self,
service_path: &str,
service_method: &str,
is_oneway: bool,
metadata: &Metadata,
args: &dyn RpcxParam,
) -> Option<Result<T>>
where
T: RpcxParam + Default,
{
let rt = Runtime::new().unwrap();
...
每次 call 创建和销毁运行时,性能上不去,考虑在 client 创建的时候初始化,然后通过 mpc 通讯。或者其它更高效的方式。
Metadata
Metadata
Assignees
Labels
No labels