Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya committed Mar 29, 2024
1 parent 3ca531b commit f5f34cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liteapi/src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<T> Stream for LitePeer<T> where T: Stream<Item = Result<Bytes, AdnlError>>
match inner {
Poll::Ready(Some(Ok(bytes))) => {
let decoded = tl_proto::deserialize(&bytes);
log::debug!("Received TL message: {:?}", decoded);
log::debug!("Decoded to TL message:\n{:?}\n{:?}", bytes, decoded);
Poll::Ready(Some(decoded.map_err(|e| LiteError::TlError(e))))

Check failure on line 54 in liteapi/src/peer.rs

View workflow job for this annotation

GitHub Actions / Clippy

redundant closure
},
Poll::Ready(Some(Err(e))) => Poll::Ready(Some(Err(LiteError::AdnlError(e.into())))),

Check failure on line 56 in liteapi/src/peer.rs

View workflow job for this annotation

GitHub Actions / Clippy

useless conversion to the same type: `adnl::AdnlError`
Expand Down

0 comments on commit f5f34cf

Please sign in to comment.