From 0a37a8b470fa5755ac7ada6cefb1d82016b1cf85 Mon Sep 17 00:00:00 2001 From: Max K <25259015+mkolodezny@users.noreply.github.com> Date: Tue, 17 May 2022 11:14:32 -0700 Subject: [PATCH] remove redundant type conversions for activity task dispatch (#4820) --- service/matching/matchingEngine.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/matching/matchingEngine.go b/service/matching/matchingEngine.go index 373f254b86f..b601415e1c1 100644 --- a/service/matching/matchingEngine.go +++ b/service/matching/matchingEngine.go @@ -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,