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

Dune client: SendBlock -> SendBlocks #36

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

vegarsti
Copy link
Member

@vegarsti vegarsti commented Jun 25, 2024

This PR changes the Dune client to send a batch of blocks. We still only send one block from the main loop, though.

See also previous draft PR #36.

@vegarsti vegarsti requested a review from msf June 25, 2024 12:27
Copy link
Member Author

vegarsti commented Jun 25, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vegarsti and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@msf msf left a comment

Choose a reason for hiding this comment

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

approved, but the parsing of responses for any status code is a bug, only on 200 or client-side errors (400-499 status codes) we can do that.

if err != nil {
return request, err
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch!!

client/duneapi/client.go Outdated Show resolved Hide resolved
client/duneapi/models.go Outdated Show resolved Hide resolved
@vegarsti
Copy link
Member Author

approved, but the parsing of responses for any status code is a bug, only on 200 or client-side errors (400-499 status codes) we can do that.

Oh I see! That makes sense. I'll change it so we read the body as a string without parsing anything

@vegarsti vegarsti force-pushed the dune-client-batch-blocks branch from 3c2104d to 75cb211 Compare June 27, 2024 05:45
@vegarsti vegarsti merged commit a448231 into main Jun 27, 2024
1 check passed
@vegarsti vegarsti deleted the dune-client-batch-blocks branch June 27, 2024 05:48
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