Skip to content

Fix EOF error in gRPC state-sync#489

Merged
JekaMas merged 3 commits into
developfrom
POS-718
Aug 11, 2022
Merged

Fix EOF error in gRPC state-sync#489
JekaMas merged 3 commits into
developfrom
POS-718

Conversation

@0xKrishna
Copy link
Copy Markdown
Contributor

This change should fix the issue where we might end up processing partial number of event records in case of an error in gRPC client - server streaming.

It will only return records when there is an EOF from server side, Which means all the records are processed, If there is any other error than EOF, It should return the error and no records (nil).

Reference : https://grpc.io/docs/languages/go/basics/#client-side-streaming-rpc

https://polygon.atlassian.net/browse/POS-718

@JekaMas JekaMas merged commit 72aa44e into develop Aug 11, 2022
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.

4 participants