From 9edfcd6dd860483cbec08b301bf11f76e1735a87 Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Wed, 2 Oct 2024 10:21:36 +0200 Subject: [PATCH] Switch idempotency_key to optional field --- dev/restate/service/protocol.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/restate/service/protocol.proto b/dev/restate/service/protocol.proto index 405fee0..45aa417 100644 --- a/dev/restate/service/protocol.proto +++ b/dev/restate/service/protocol.proto @@ -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; @@ -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;