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

Embed Config Pattern For Attestation, POW Chain, and RPC Services #8635

Merged

Conversation

kevlu93
Copy link
Contributor

@kevlu93 kevlu93 commented Mar 20, 2021

What type of PR is this?

Other

What does this PR do? Why is it needed?
This pull request refactors the Service struct for the Attestation, POW Chain, and RPC services by having a pointer to the Config struct as one of the fields, removing duplicated field declarations.

Which issues(s) does this PR fix?

Part of #8603

Other notes for review
See #8618

@kevlu93 kevlu93 requested a review from a team as a code owner March 20, 2021 15:11
@kevlu93 kevlu93 requested review from rauljordan, 0xKiwi and nisdas March 20, 2021 15:11
@codecov
Copy link

codecov bot commented Mar 20, 2021

Codecov Report

Merging #8635 (fde7570) into develop (a921455) will increase coverage by 0.05%.
The diff coverage is 71.48%.

@@             Coverage Diff             @@
##           develop    #8635      +/-   ##
===========================================
+ Coverage    61.35%   61.40%   +0.05%     
===========================================
  Files          488      493       +5     
  Lines        34297    34692     +395     
===========================================
+ Hits         21042    21304     +262     
- Misses       10145    10247     +102     
- Partials      3110     3141      +31     

terencechain
terencechain previously approved these changes Mar 20, 2021
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

Please run go fmt ./...

@kevlu93
Copy link
Contributor Author

kevlu93 commented Mar 20, 2021

Sorry should not have amended the previous commit with the formatting changes.

@kevlu93 kevlu93 requested a review from terencechain March 20, 2021 21:33
@prylabs-bulldozer prylabs-bulldozer bot merged commit 4a64d4d into prysmaticlabs:develop Mar 21, 2021
@kevlu93 kevlu93 deleted the embed-config-pattern branch March 21, 2021 20:45
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