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

Introduce API StateFetcher #8639

Merged
merged 23 commits into from
Mar 22, 2021
Merged

Introduce API StateFetcher #8639

merged 23 commits into from
Mar 22, 2021

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Mar 22, 2021

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Extracted from #8631. This PR lays the groundwork for implementing the API endpoint. More concretely, I moved the state getter function into a separate package so that it's reusable between different gRPC servers. To avoid code duplication, I created a new StateFetcher type. It will be used by the beacon and debug servers.

Which issues(s) does this PR fix?

Part of #7510

Other notes for review

N/A

@rkapka rkapka requested a review from a team as a code owner March 22, 2021 09:45
@rkapka rkapka changed the title Api state fetcher Introduce API StateFetcher Mar 22, 2021
@rkapka rkapka added the API Api related tasks label Mar 22, 2021
@@ -0,0 +1,108 @@
package statefetcher

Copy link
Member

Choose a reason for hiding this comment

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

Optional:

Can name this file fetcher.go instead. The folder name is statefetcher which already implies state

@codecov
Copy link

codecov bot commented Mar 22, 2021

Codecov Report

Merging #8639 (0896700) into develop (eca67ce) will increase coverage by 0.07%.
The diff coverage is 77.04%.

@@             Coverage Diff             @@
##           develop    #8639      +/-   ##
===========================================
+ Coverage    61.21%   61.29%   +0.07%     
===========================================
  Files          493      494       +1     
  Lines        34296    34325      +29     
===========================================
+ Hits         20996    21040      +44     
+ Misses       10169    10152      -17     
- Partials      3131     3133       +2     

@prylabs-bulldozer prylabs-bulldozer bot merged commit 8281634 into develop Mar 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the api-state-fetcher branch March 22, 2021 15:19
@rkapka rkapka mentioned this pull request Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants