Skip to content

Commit 5ba310e

Browse files
author
Evan Sandoval
committed
Use getter for PollForActivityTaskResponse attempt
1 parent 7ad01f3 commit 5ba310e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func WithActivityTask(
356356
zapcore.Field{Key: tagWorkflowType, Type: zapcore.StringType, String: *task.WorkflowType.Name},
357357
zapcore.Field{Key: tagWorkflowID, Type: zapcore.StringType, String: *task.WorkflowExecution.WorkflowId},
358358
zapcore.Field{Key: tagRunID, Type: zapcore.StringType, String: *task.WorkflowExecution.RunId},
359-
zapcore.Field{Key: tagAttempt, Type: zapcore.Int64Type, Integer: int64(*task.Attempt)},
359+
zapcore.Field{Key: tagAttempt, Type: zapcore.Int64Type, Integer: int64(task.GetAttempt())},
360360
)
361361

362362
return context.WithValue(ctx, activityEnvContextKey, &activityEnvironment{

0 commit comments

Comments
 (0)