-
Notifications
You must be signed in to change notification settings - Fork 747
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
refactor: reduce code duplication and remove unnecesary strings #5762
base: unstable
Are you sure you want to change the base?
Conversation
if some other comments need to be removed then kindly tell |
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.
Thanks for jumping onto this @1010adigupta, some nits
LightClientBootstrap(Arc<LightClientBootstrap<T>>), | ||
|
||
/// A response to a get BLOBS_BY_ROOT request. | ||
BlobsByRoot(Arc<BlobSidecar<T>>), | ||
|
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.
You can remove the whitespace too. Also ResponseTermination
variant comments can be dropped too
#[strum(serialize = "beacon_blocks_by_root")] | ||
BlocksByRoot, | ||
/// The `BlobsByRange` protocol name. | ||
|
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.
Drop the whitespaces for the enums your PR is already modifying
@chong-he all suggested changes have been addressed, can merge |
Hi @1010adigupta However it looks like this was built on top of |
@1010adigupta Could you please merge the latest unstable to update this PR and solve the conflicts, as @jimmygchen mentioned? There are some light client RPCs (#3849) that are in the latest unstable. Need to merge the fields related to Thanks! |
Issue Addressed
closes #5745
Proposed Changes
modifies code according to issue description, removes some boilerplate comments and reduces code duplication.