Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Introduce service.Version and discovery.Version enums #93

Merged
merged 2 commits into from
May 16, 2024

Conversation

tillrohrmann
Copy link
Contributor

This commit introduces the service.Version and discovery.Version
enums which define the protocol versions of the service and the
service discovery protocol.

This fixes #92.

This PR is based on #90.

@tillrohrmann tillrohrmann force-pushed the issues/92 branch 4 times, most recently from 755b5c0 to 8e85179 Compare May 14, 2024 13:01
Comment on lines 18 to 22
enum Version {
VERSION_UNSPECIFIED = 0;
// initial service discovery protocol version using endpoint_manifest_schema.json
V1 = 1;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How about moving this and the other enum in an ad-hoc proto file, like version.proto?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One reason this Version is in a different file than the protocol version is because otherwise the V1 variants of both enums would clash. That's why they need to be placed in different packages.

Copy link
Contributor

Choose a reason for hiding this comment

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

ahhhh protobuf 😠

@tillrohrmann tillrohrmann force-pushed the issues/92 branch 2 times, most recently from 53a7348 to 2e6fd5a Compare May 14, 2024 13:27
This commit introduces the service.Version and discovery.Version
enums which define the protocol versions of the service and the
service discovery protocol.

This fixes restatedev#92.
@tillrohrmann
Copy link
Contributor Author

Thanks for the review @slinkydeveloper. Merging this PR now.

@tillrohrmann tillrohrmann merged commit 1898426 into restatedev:main May 16, 2024
1 check passed
@tillrohrmann tillrohrmann deleted the issues/92 branch May 16, 2024 09:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update service protocol to define service protocol version and service discovery protocol version
2 participants