Skip to content

Commit

Permalink
Reorder vars
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed Dec 20, 2022
1 parent 69e224b commit 61eec80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/history/workflow/workflow_task_state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ func (m *workflowTaskStateMachine) AddWorkflowTaskScheduledEventAsHeartbeat(
}

scheduleTime := m.ms.timeSource.Now().UTC()
attempt := m.ms.executionInfo.WorkflowTaskAttempt
// TaskQueue should already be set from workflow execution started event.
taskQueue := m.ms.TaskQueue()
// DefaultWorkflowTaskTimeout should already be set from workflow execution started event.
startToCloseTimeout := m.getStartToCloseTimeout(m.ms.executionInfo.DefaultWorkflowTaskTimeout, m.ms.executionInfo.WorkflowTaskAttempt)
attempt := m.ms.executionInfo.WorkflowTaskAttempt
startToCloseTimeout := m.getStartToCloseTimeout(m.ms.executionInfo.DefaultWorkflowTaskTimeout, attempt)

var scheduledEvent *historypb.HistoryEvent
var scheduledEventID int64
Expand Down

0 comments on commit 61eec80

Please sign in to comment.