From 244744d88410298f6a59046efdd9fe4c13bac043 Mon Sep 17 00:00:00 2001 From: Zen Yui Date: Fri, 11 Sep 2020 14:07:54 -0400 Subject: [PATCH] simplify HandleCommandResponse (#11) --- chief_of_state/v1/writeside.proto | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/chief_of_state/v1/writeside.proto b/chief_of_state/v1/writeside.proto index 467b9bf..ba2845b 100644 --- a/chief_of_state/v1/writeside.proto +++ b/chief_of_state/v1/writeside.proto @@ -36,24 +36,8 @@ message HandleCommandRequest { // HandleCommandResponse message HandleCommandResponse { - oneof response_type { - // With this response type an event is persisted before - // a reply is sent back to the caller. The reply message that is sent after - // the event is persisted contains the resulting state after the event is - // handled - PersistAndReply persist_and_reply = 1; - // With this response the current state is sent back to the caller. - // This type of response is very useful to read-only requests that do not - // need a read side query. - Reply reply = 2; - }; -} -// Reply results in current state to be returned -message Reply {} - -// PersistAndReply contains the event to persist -message PersistAndReply { - // event to persist + // An event to append to the journal. If not set, COS + // will treat this command as a no-op. google.protobuf.Any event = 1; }