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

Small Readability Improvement in Sync Code #5098

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

ethDreamer
Copy link
Member

Just a small code change that I think improves readability. Though maybe I'm not understanding why it was originally written the way it was..

Copy link
Member

@realbigsean realbigsean left a comment

Choose a reason for hiding this comment

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

LGTM, love a good readability improvement

@realbigsean realbigsean added the ready-for-merge This PR is ready to merge. label Jan 20, 2024
let block_already_downloaded = self.block_already_downloaded();
let blobs_already_downloaded = self.blobs_already_downloaded();

if block_already_downloaded && blobs_already_downloaded {
trace!(cx.log, "Lookup request already completed"; "block_root"=> ?block_root);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the deletion of this trace log statement intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah.. I don't think this log is very useful. There are hardly any tracing logs in this code & I just spent a long time tracking down a bug in this code & it required me to put a bunch of additional logs all over the place. I never turned on trace logs because there are hardly any of them and none of them would've helped me debug anyway, they would've only cluttered the output and made it more difficult.

@ethDreamer ethDreamer merged commit 02d1f36 into sigp:unstable Jan 23, 2024
28 checks passed
danielramirezch pushed a commit to danielramirezch/lighthouse that referenced this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants