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

Implement missing streaming methods #658

Closed
wants to merge 1 commit into from

Conversation

bluesign
Copy link
Collaborator

@bluesign bluesign commented May 2, 2024

Closes #657

Description

Implements new streaming methods, not sure if it is need to back port this.


For contributor use:

  • Targeted PR against master branch
  • Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the GitHub PR explorer
  • Added appropriate labels

@bluesign
Copy link
Collaborator Author

bluesign commented May 7, 2024

@peterargue can you have a look? I want to be 100% sure what I did is correct before requesting a review.

isNotFound := errors.As(err, &blockNotFoundByIDError)
if !isNotFound {
//check latest block request
if blockID != flow.ZeroID && height == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend switching this to use the new start height approach. this older approach requires more complicated client and server side logic and makes it hard to stream from block 0

@bluesign
Copy link
Collaborator Author

bluesign commented Oct 2, 2024

those are fixed on another PR closing.

@bluesign bluesign closed this Oct 2, 2024
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.

Implement new state streaming endpoints
2 participants