-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: improve download observability #10039
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, one suggestion
crates/engine/tree/src/download.rs
Outdated
if let Some(pending_event) = self.pop_pending_event() { | ||
return Poll::Ready(pending_event); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe emitting here after the if self.set_buffered_blocks.is_empty() {
is problematic
we can move this to the start of the poll function because returning poll will ensure poll is called again and requests are already sent at this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I wanted to emit the events after the first loops to advance existing requests, but emitting these new request events should happen first 👍
Closes: #10018