Skip to content

Commit

Permalink
Switch idempotency_key to optional field
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Oct 2, 2024
1 parent 5129eca commit 9edfcd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ message CallEntryMessage {
// If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
string key = 5;

string idempotency_key = 6;
// If present, it must be non empty.
optional string idempotency_key = 6;

oneof result {
bytes value = 14;
Expand Down Expand Up @@ -349,7 +350,8 @@ message OneWayCallEntryMessage {
// If this invocation has a key associated (e.g. for objects and workflows), then this key is filled in. Empty otherwise.
string key = 6;

string idempotency_key = 7;
// If present, it must be non empty.
optional string idempotency_key = 7;

// Entry name
string name = 12;
Expand Down

0 comments on commit 9edfcd6

Please sign in to comment.