Skip to content

Commit

Permalink
fix: support oneway for shmipc
Browse files Browse the repository at this point in the history
  • Loading branch information
Millione committed Aug 8, 2024
1 parent 9f9c666 commit 74ccd8f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions volo-thrift/src/transport/pingpong/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,10 @@ where
let shmipc_target = rpc_info.callee().shmipc_address();
let oneway = cx.message_type == TMessageType::OneWay;
cx.stats.record_make_transport_start_at();
let mut transport = if !oneway {
self.make_transport
.call((target, shmipc_target.clone(), Ver::PingPong))
.await?
} else {
self.make_transport
.call((target, None, Ver::PingPong))
.await?
};
let mut transport = self
.make_transport
.call((target, shmipc_target.clone(), Ver::PingPong))
.await?;
cx.stats.record_make_transport_end_at();
let resp = transport.send(cx, req, oneway).await;
if let Ok(None) = resp {
Expand Down

0 comments on commit 74ccd8f

Please sign in to comment.