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

feat: progress logging #290

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: progress logging #290

wants to merge 3 commits into from

Conversation

endbr64
Copy link
Member

@endbr64 endbr64 commented Oct 18, 2024

No description provided.

@nitsky nitsky changed the title Progress logging feat: progress logging Oct 18, 2024
let this = self.get_mut();
let poll_result = Pin::new(&mut this.inner).poll_read(cx, buf);
if let std::task::Poll::Ready(Ok(())) = &poll_result {
let read_bytes = buf.filled().len() as u64;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is ugly because we also keep track of progress in consume() below. In practice, we always use one or the other in extract/(de)compress. Taking suggestions on how to improve this.

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.

1 participant