Skip to content

Commit

Permalink
Replace protocol Empty message with custom one, so we remove the depe…
Browse files Browse the repository at this point in the history
…ndency on protobuf built-in messages
  • Loading branch information
slinkydeveloper committed Mar 21, 2024
1 parent 61ae44b commit 63849d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ syntax = "proto3";

package dev.restate.service.protocol;

import "google/protobuf/empty.proto";

option java_package = "dev.restate.generated.service.protocol";
option go_package = "restate.dev/sdk-go/pb/service/protocol";

Expand Down Expand Up @@ -49,7 +47,7 @@ message CompletionMessage {
uint32 entry_index = 1;

oneof result {
google.protobuf.Empty empty = 13;
Empty empty = 13;
bytes value = 14;
Failure failure = 15;
};
Expand Down Expand Up @@ -130,7 +128,7 @@ message GetStateEntryMessage {
bytes key = 1;

oneof result {
google.protobuf.Empty empty = 13;
Empty empty = 13;
bytes value = 14;
Failure failure = 15;
};
Expand Down Expand Up @@ -182,7 +180,7 @@ message SleepEntryMessage {
uint64 wake_up_time = 1;

oneof result {
google.protobuf.Empty empty = 13;
Empty empty = 13;
Failure failure = 15;
}
}
Expand Down Expand Up @@ -267,3 +265,5 @@ message Header {
string key = 1;
string value = 2;
}

message Empty {}

0 comments on commit 63849d6

Please sign in to comment.