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

add admin service for checkpoint and recover rpc #235

Merged
merged 1 commit into from
May 12, 2023

Conversation

countvonzero
Copy link
Contributor

No description provided.

@countvonzero countvonzero requested a review from dshulyak May 8, 2023 05:39
@countvonzero countvonzero force-pushed the add-checkpoint-rpc branch 3 times, most recently from f9a32c7 to 441ac9f Compare May 12, 2023 00:19
@countvonzero countvonzero changed the title add checkpoint and recover rpc add admin service for checkpoint and recover rpc May 12, 2023
}

message CheckpointStreamResponse {
bytes data = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

if we would use protobuf you could stream objects one by one (using oneof as a enum) seamlessly. so it the stream would be smth like:
{type=HEADER, {Layer: 10, Restory: 11}}
{type=ACCOUNT, {Principal: ...}}
{type=ATX, {ID: ...}}

and then not to hold every atx/account in memory - there is an iterator pattern, i used it for TransactionResults

@countvonzero countvonzero merged commit b979ac5 into master May 12, 2023
1 check passed
@fasmat fasmat deleted the add-checkpoint-rpc branch May 23, 2023 09:15
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.

None yet

2 participants