Skip to content

Commit

Permalink
remove redundant type conversions for activity task dispatch (cadence…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolodezny authored May 17, 2022
1 parent ee5461b commit 0a37a8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/matching/matchingEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,11 @@ func (e *matchingEngineImpl) createSyncMatchPollForActivityTaskResponse(
response.Input = attributes.Input
response.WorkflowExecution = task.workflowExecution()
response.ScheduledTimestampOfThisAttempt = activityTaskDispatchInfo.ScheduledTimestampOfThisAttempt
response.ScheduledTimestamp = common.Int64Ptr(*scheduledEvent.Timestamp)
response.ScheduleToCloseTimeoutSeconds = common.Int32Ptr(*attributes.ScheduleToCloseTimeoutSeconds)
response.ScheduledTimestamp = scheduledEvent.Timestamp
response.ScheduleToCloseTimeoutSeconds = attributes.ScheduleToCloseTimeoutSeconds
response.StartedTimestamp = activityTaskDispatchInfo.StartedTimestamp
response.StartToCloseTimeoutSeconds = common.Int32Ptr(*attributes.StartToCloseTimeoutSeconds)
response.HeartbeatTimeoutSeconds = common.Int32Ptr(*attributes.HeartbeatTimeoutSeconds)
response.StartToCloseTimeoutSeconds = attributes.StartToCloseTimeoutSeconds
response.HeartbeatTimeoutSeconds = attributes.HeartbeatTimeoutSeconds

token := &common.TaskToken{
DomainID: task.event.DomainID,
Expand Down

0 comments on commit 0a37a8b

Please sign in to comment.