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

Run text/event-stream values returned from grpc-gateway through API Middleware #9080

Merged
merged 15 commits into from
Jun 24, 2021

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jun 23, 2021

Feature

What does this PR do? Why is it needed?

https://ethereum.github.io/eth2.0-APIs/#/Events/eventstream has been implemented on the gRPC server side and in grpc-gateway, but it has to be run through API Middleware to function correctly.

I made use of the client side of this library, which fully implements server-side events according to r3labs/sse#33 (comment).

Which issues(s) does this PR fix?

N/A

Other notes for review

N/A

@codecov
Copy link

codecov bot commented Jun 23, 2021

Codecov Report

Merging #9080 (6501b54) into develop (8607166) will decrease coverage by 0.10%.
The diff coverage is 28.00%.

@@             Coverage Diff             @@
##           develop    #9080      +/-   ##
===========================================
- Coverage    60.28%   60.18%   -0.11%     
===========================================
  Files          541      541              
  Lines        38648    38725      +77     
===========================================
+ Hits         23300    23307       +7     
- Misses       11996    12052      +56     
- Partials      3352     3366      +14     

@rkapka rkapka marked this pull request as ready for review June 24, 2021 08:38
@rkapka rkapka requested a review from a team as a code owner June 24, 2021 08:38
@rkapka rkapka requested review from jmozah, rauljordan and nisdas June 24, 2021 08:38
@rkapka rkapka added API Api related tasks Ready For Review labels Jun 24, 2021
rauljordan
rauljordan previously approved these changes Jun 24, 2021
@prylabs-bulldozer prylabs-bulldozer bot merged commit ff99a2e into develop Jun 24, 2021
@delete-merged-branch delete-merged-branch bot deleted the events-api-middleware branch June 24, 2021 16:18
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