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

Forwarder: separate get_leader_and_addr #30922

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

apfitzge
Copy link
Contributor

@apfitzge apfitzge commented Mar 27, 2023

Problem

Just cleaning up some of this in preparation for #30925.

Summary of Changes

Move get_leader_and_addr into a separate function so our forwarding function is less cluttered.
Use "new" let-else rust syntax to return early

Fixes #

@apfitzge apfitzge changed the title get_leader_and_addr Forwarder: separate get_leader_and_addr Mar 27, 2023
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #30922 (51cef29) into master (bf986d6) will increase coverage by 0.0%.
The diff coverage is 85.4%.

@@           Coverage Diff            @@
##           master   #30922    +/-   ##
========================================
  Coverage    81.5%    81.5%            
========================================
  Files         727      727            
  Lines      205166   205436   +270     
========================================
+ Hits       167295   167537   +242     
- Misses      37871    37899    +28     

@apfitzge apfitzge marked this pull request as ready for review March 28, 2023 21:55
Copy link
Contributor

@lijunwangs lijunwangs left a comment

Choose a reason for hiding this comment

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

LGTM

@apfitzge apfitzge merged commit 8e910b4 into solana-labs:master Mar 28, 2023
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