Skip to content

Commit

Permalink
adjust name
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Martinez <[email protected]>
  • Loading branch information
famarting committed Oct 31, 2024
1 parent 9a656d4 commit 006d587
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow/activity_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 006d587

Please sign in to comment.