Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Funnel all writing through one function and add logging. #7

Closed
wants to merge 2 commits into from

Conversation

SirVer
Copy link
Contributor

@SirVer SirVer commented Dec 7, 2023

No description provided.

zvt/src/sequences.rs Outdated Show resolved Hide resolved
@@ -91,7 +107,7 @@ where
let bytes = read_packet_async(&mut src).await?;
let packet = Self::Output::zvt_parse(&bytes)?;
// Write the response.
src.write_all(&packets::Ack {}.zvt_serialize()).await?;
write_packet_async::<packets::Ack>(&mut src, &packets::Ack {}).await?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you don't need to spell out the type here - it should be deduced from the argument

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is what I thought, but it does not compile without it.

Signed-off-by: Holger Rapp <[email protected]>
@dorezyuk
Copy link
Contributor

Are we closing this one?

@SirVer
Copy link
Contributor Author

SirVer commented Dec 11, 2023

Yes, superseeded by #9.

@SirVer SirVer closed this Dec 11, 2023
@dorezyuk dorezyuk deleted the hrapp/add_debug_logging branch December 12, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants