We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f6c0e1 commit 9539d35Copy full SHA for 9539d35
workflow/activity_context.go
@@ -40,10 +40,10 @@ type callActivityOption func(*callActivityOptions) error
40
41
type callActivityOptions struct {
42
rawInput *wrapperspb.StringValue
43
- retryPolicy *ActivityRetryPolicy
+ retryPolicy *RetryPolicy
44
}
45
46
-type ActivityRetryPolicy struct {
+type RetryPolicy struct {
47
MaxAttempts int
48
InitialRetryInterval time.Duration
49
BackoffCoefficient float64
@@ -71,7 +71,7 @@ func ActivityRawInput(input string) callActivityOption {
71
72
73
74
-func RetryPolicy(policy ActivityRetryPolicy) callActivityOption {
+func ActivityRetryPolicy(policy RetryPolicy) callActivityOption {
75
return func(opts *callActivityOptions) error {
76
opts.retryPolicy = &policy
77
return nil
0 commit comments