From 006d58730fb7e976a3989affb04f1b9f950ad077 Mon Sep 17 00:00:00 2001 From: Fabian Martinez <46371672+famarting@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:22:20 +0100 Subject: [PATCH] adjust name Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com> --- workflow/activity_context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/activity_context.go b/workflow/activity_context.go index 811ba620..8da9a4c8 100644 --- a/workflow/activity_context.go +++ b/workflow/activity_context.go @@ -40,10 +40,10 @@ type callActivityOption func(*callActivityOptions) error type callActivityOptions struct { rawInput *wrapperspb.StringValue - retryPolicy *ActivityRetryPolicy + retryPolicy *RetryPolicy } -type ActivityRetryPolicy struct { +type RetryPolicy struct { MaxAttempts int InitialRetryInterval time.Duration BackoffCoefficient float64 @@ -71,7 +71,7 @@ func ActivityRawInput(input string) callActivityOption { } } -func RetryPolicy(policy ActivityRetryPolicy) callActivityOption { +func ActivityRetryPolicy(policy RetryPolicy) callActivityOption { return func(opts *callActivityOptions) error { opts.retryPolicy = &policy return nil