Skip to content

Commit

Permalink
oss-1840 investigation: Do not send update event_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 8, 2023
1 parent 9001677 commit 69d5244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions core/src/worker/workflow/machines/update_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub(super) enum UpdateMachineCommand {
pub(super) struct SharedState {
message_id: String,
instance_id: String,
#[allow(dead_code)]
event_seq_id: i64,
request: UpdateRequest,
}
Expand Down Expand Up @@ -236,7 +237,6 @@ impl WFMachinesAdapter for UpdateMachine {
format!("{}/accept", self.shared_state.message_id),
UpdateMsg::Accept(Acceptance {
accepted_request_message_id: self.shared_state.message_id.clone(),
accepted_request_sequencing_event_id: self.shared_state.event_seq_id,
..Default::default()
}),
)?,
Expand All @@ -245,7 +245,6 @@ impl WFMachinesAdapter for UpdateMachine {
format!("{}/reject", self.shared_state.message_id),
UpdateMsg::Reject(Rejection {
rejected_request_message_id: self.shared_state.message_id.clone(),
rejected_request_sequencing_event_id: self.shared_state.event_seq_id,
failure: Some(fail),
..Default::default()
}),
Expand Down
4 changes: 2 additions & 2 deletions sdk-core-protos/src/history_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ impl TestHistoryBuilder {
self.build_and_push_event(EventType::WorkflowExecutionUpdateAccepted, attrs.into())
}

pub fn add_update_completed(&mut self, accepted_event_id: i64) {
pub fn add_update_completed(&mut self, _accepted_event_id: i64) {
let attrs = WorkflowExecutionUpdateCompletedEventAttributes {
meta: None,
accepted_event_id,
accepted_event_id: 0,
outcome: Some(update::v1::Outcome {
value: Some(outcome::Value::Success(Payloads::default())),
}),
Expand Down

0 comments on commit 69d5244

Please sign in to comment.