Skip to content

Commit

Permalink
fix(lust-thrift): client RpcCx didn't clear extension
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Nov 29, 2023
1 parent 6145eed commit ac5d9fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion volo-thrift/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "volo-thrift"
version = "0.8.1"
version = "0.8.2"
edition.workspace = true
homepage.workspace = true
repository.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion volo-thrift/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,13 @@ impl ClientContext {

#[inline]
pub fn reset(&mut self, seq_id: i32, msg_type: TMessageType) {
self.rpc_info.clear();
self.seq_id = seq_id;
self.message_type = msg_type;
self.transport.should_reuse = true;
self.stats.reset();
self.common_stats.reset();
// self.0 is RpcCx, this reset will clear rpcinfo and extension
self.0.reset(self.0.inner);
}
}

Expand Down

0 comments on commit ac5d9fe

Please sign in to comment.