File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
### Fixed
15
15
- ` network::client::tcp::TcpStream ` does not close underlying fd anymore. Now fd will be closed only when the last copy of tcp stream is dropped.
16
+ - ` network::protocol::codec::Header::encode ` will not truncate to ` u8 ` an
17
+ ` network::protocol::codec::IProtoType ` integer from an outside stream at decoding.
16
18
17
19
### Deprecated
18
20
- ` network::client::tcp::UnsafeSendSyncTcpStream ` is now deprected. ` network::client::tcp::TcpStream ` should be used instead.
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tarantool"
3
3
description = " Tarantool rust bindings"
4
- version = " 6.1.0 "
4
+ version = " 6.1.1 "
5
5
authors = [
6
6
" Dmitriy Koltsov <dkoltsov@picodata.io>" ,
7
7
" Georgy Moshkin <gmoshkin@picodata.io>" ,
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ impl Header {
405
405
pub fn encode ( & self , stream : & mut impl Write ) -> Result < ( ) , Error > {
406
406
rmp:: encode:: write_map_len ( stream, 2 ) ?;
407
407
rmp:: encode:: write_pfix ( stream, REQUEST_TYPE ) ?;
408
- rmp:: encode:: write_pfix ( stream, self . iproto_type as u8 ) ?;
408
+ rmp:: encode:: write_uint ( stream, self . iproto_type as _ ) ?;
409
409
rmp:: encode:: write_pfix ( stream, SYNC ) ?;
410
410
rmp:: encode:: write_uint ( stream, self . sync . 0 ) ?;
411
411
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments