Skip to content

Commit

Permalink
fix usage of wrong error
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed May 29, 2024
1 parent 1779ff1 commit 91d2e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canary/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func timeoutWorkflow(ctx workflow.Context, inputScheduledTimeNanos int64) error

activityErr := activityFuture.Get(ctx, nil)
if activityErr != nil {
if !errors.As(err, new(*workflow.TimeoutError)) {
if !errors.As(activityErr, new(*workflow.TimeoutError)) {
workflow.GetLogger(ctx).Info("activity timeout failed", zap.Error(activityErr))
} else {
activityErr = nil
Expand Down

0 comments on commit 91d2e19

Please sign in to comment.