Skip to content

Commit

Permalink
remove deadcode
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Mar 11, 2022
1 parent 70b8b55 commit 04bfdd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Frame {
debug!("decode id = {:?}", id);

let ok = r.read_u8().await?;
debug!("decode id = {:?}", ok);
debug!("decode ok = {:?}", ok);

let len = r.read_u64().await?;
debug!("decode len = {:?}", len);
Expand Down Expand Up @@ -103,10 +103,10 @@ impl ReqBuf {
WriteBytesExt::write_u64::<BigEndian>(&mut cursor, id).unwrap();
debug!("encode id = {:?}", id);
WriteBytesExt::write_u8(&mut cursor, ok as u8).unwrap();
debug!("encode id = {:?}", id);
debug!("encode ok = {:?}", ok);
// adjust the data length
WriteBytesExt::write_u64::<BigEndian>(&mut cursor, len - 17).unwrap();
debug!("encode len = {:?}", len);
debug!("encode len = {:?}", len - 17);

let data = cursor.into_inner();

Expand Down

0 comments on commit 04bfdd9

Please sign in to comment.