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

simplifies pull-responses handling #33743

Merged

Conversation

behzadnouri
Copy link
Contributor

@behzadnouri behzadnouri commented Oct 17, 2023

Problem

Following: #33722 from pubkey in PullResponse is no longer used in processing pull-responses and so the code can be simplified.

Summary of Changes

simplified pull-response handling.

Following:
solana-labs#33722
from pubkey in PullResponse is no longer used in processing
pull-responses and as a result the code can be simplified.
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #33743 (cda6b59) into master (6efc7ec) will increase coverage by 0.0%.
Report is 6 commits behind head on master.
The diff coverage is 98.2%.

@@           Coverage Diff           @@
##           master   #33743   +/-   ##
=======================================
  Coverage    81.7%    81.7%           
=======================================
  Files         806      806           
  Lines      217859   217841   -18     
=======================================
- Hits       178199   178192    -7     
+ Misses      39660    39649   -11     

Comment on lines -2169 to -2174
from: &Pubkey,
crds_values: Vec<CrdsValue>,
timeouts: &CrdsTimeouts,
) -> (usize, usize, usize) {
let len = crds_values.len();
trace!("PullResponse me: {} from: {} len={}", self.id(), from, len);
Copy link
Contributor

Choose a reason for hiding this comment

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

ya didn't know if we wanted to leave this in for debugging purposes. should have asked. not having this makes the rest of the upstream code much simpler. good find. thank you

@behzadnouri behzadnouri merged commit 2465abc into solana-labs:master Oct 18, 2023
31 checks passed
@behzadnouri behzadnouri deleted the gossip-handle-pull-response branch October 18, 2023 18:06
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