Skip to content

[protocol] Use protobuf-es #285

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

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

igalshilman
Copy link
Contributor

@igalshilman igalshilman commented Mar 20, 2024

This is an internal change, replace ts-proto with protobuf-es

Comment on lines +3 to +8
deps:
- remote: buf.build
owner: protocolbuffers
repository: wellknowntypes
commit: f17e05fe4a764a3482b8e033daec742e
digest: shake256:886495c560d96bc48bef49e17e3d33430fa1f6c735b0cee40ef83161824b01c2d2f342d81ca02aadeed52aa3cf4a8273d5ab9584fbb595b71e7e44240caedb00
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note for myself: I think we should get rid of google.protobuf.Empty and define our own empty message in the protocol messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh absolutely!

});
}

public rejectAwakeable(id: string, reason: string): void {
this.checkState("rejectAwakeable");
this.completeAwakeable(id, {
failure: { code: UNKNOWN_ERROR_CODE, message: reason },
result: {
case: "failure",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks much better!

@igalshilman igalshilman marked this pull request as ready for review March 21, 2024 08:46
@igalshilman igalshilman merged commit c533dd7 into restatedev:main Mar 21, 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.

2 participants