Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyboycjr committed May 10, 2024
1 parent 62c094b commit 60dcb26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
6 changes: 1 addition & 5 deletions experimental/mrpc/plugin/load_balancer/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,7 @@ impl Engine for LoadBalancerEngine {
&mut self.get_mut().indicator
}

fn handle_request(
&mut self,
request: Vec<u8>,
_cred: std::os::unix::net::UCred,
) -> Result<()> {
fn handle_request(&mut self, request: Vec<u8>, _cred: std::os::unix::net::UCred) -> Result<()> {
let request: control_plane::Request = bincode::deserialize(&request[..])?;

// TODO: send result to userland
Expand Down
6 changes: 1 addition & 5 deletions experimental/mrpc/plugin/rpc_adapter/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ impl Engine for RpcAdapterEngine {
ELS.with_borrow_mut(|els| *els = unsafe { Some(&*tls) });
}

fn handle_request(
&mut self,
request: Vec<u8>,
_cred: std::os::unix::net::UCred,
) -> Result<()> {
fn handle_request(&mut self, request: Vec<u8>, _cred: std::os::unix::net::UCred) -> Result<()> {
let request: control_plane::Request = bincode::deserialize(&request[..])?;

// TODO: send result to userland
Expand Down
6 changes: 1 addition & 5 deletions experimental/mrpc/plugin/tcp_rpc_adapter/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,7 @@ impl Engine for TcpRpcAdapterEngine {
ELS.with_borrow_mut(|els| *els = unsafe { Some(&*tls) });
}

fn handle_request(
&mut self,
request: Vec<u8>,
_cred: std::os::unix::net::UCred,
) -> Result<()> {
fn handle_request(&mut self, request: Vec<u8>, _cred: std::os::unix::net::UCred) -> Result<()> {
let request: control_plane::Request = bincode::deserialize(&request[..])?;

// TODO: send result to userland
Expand Down

0 comments on commit 60dcb26

Please sign in to comment.