Skip to content

Commit

Permalink
set is_stream when type is duplex
Browse files Browse the repository at this point in the history
  • Loading branch information
mycognosist committed Nov 20, 2023
1 parent 71b7be6 commit 8f429b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl<W: io::Write + Unpin> RpcWriter<W> {

let rpc_header = Header {
req_no: self.req_no,
is_stream: rpc_type == RpcType::Source,
is_stream: rpc_type == RpcType::Source || rpc_type == RpcType::Duplex,
is_end_or_error: false,
body_type: BodyType::JSON,
body_len: body_str.as_bytes().len() as u32,
Expand Down

0 comments on commit 8f429b3

Please sign in to comment.