fix: carry immutable hash in command dispatch
This commit is contained in:
@@ -534,8 +534,10 @@ type CommandDispatch struct {
|
||||
IssueTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=issue_time,json=issueTime,proto3" json:"issue_time,omitempty"`
|
||||
Spec *ExecutionSpec `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec,omitempty"`
|
||||
QueueExpiryTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=queue_expiry_time,json=queueExpiryTime,proto3" json:"queue_expiry_time,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
// Required immutable digest for client-side UUID/hash idempotency checks.
|
||||
ImmutableRequestSha256 []byte `protobuf:"bytes,7,opt,name=immutable_request_sha256,json=immutableRequestSha256,proto3" json:"immutable_request_sha256,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CommandDispatch) Reset() {
|
||||
@@ -610,6 +612,13 @@ func (x *CommandDispatch) GetQueueExpiryTime() *timestamppb.Timestamp {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CommandDispatch) GetImmutableRequestSha256() []byte {
|
||||
if x != nil {
|
||||
return x.ImmutableRequestSha256
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CommandAccepted struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
IssueUuid string `protobuf:"bytes,1,opt,name=issue_uuid,json=issueUuid,proto3" json:"issue_uuid,omitempty"`
|
||||
@@ -1502,7 +1511,7 @@ const file_rvbox_v1_agent_proto_rawDesc = "" +
|
||||
"\rServerWelcome\x12F\n" +
|
||||
"\x11selected_protocol\x18\x01 \x01(\v2\x19.rvbox.v1.ProtocolVersionR\x10selectedProtocol\x12;\n" +
|
||||
"\vserver_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
||||
"serverTime\"\xc7\x02\n" +
|
||||
"serverTime\"\x81\x03\n" +
|
||||
"\x0fCommandDispatch\x12\x1d\n" +
|
||||
"\n" +
|
||||
"issue_uuid\x18\x01 \x01(\tR\tissueUuid\x12)\n" +
|
||||
@@ -1511,7 +1520,8 @@ const file_rvbox_v1_agent_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"issue_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tissueTime\x12+\n" +
|
||||
"\x04spec\x18\x05 \x01(\v2\x17.rvbox.v1.ExecutionSpecR\x04spec\x12F\n" +
|
||||
"\x11queue_expiry_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x0fqueueExpiryTime\"\xad\x01\n" +
|
||||
"\x11queue_expiry_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x0fqueueExpiryTime\x128\n" +
|
||||
"\x18immutable_request_sha256\x18\a \x01(\fR\x16immutableRequestSha256\"\xad\x01\n" +
|
||||
"\x0fCommandAccepted\x12\x1d\n" +
|
||||
"\n" +
|
||||
"issue_uuid\x18\x01 \x01(\tR\tissueUuid\x12)\n" +
|
||||
|
||||
Reference in New Issue
Block a user