Skip to content

Commit

Permalink
Change deadline too short to failedPrecondition error (#3856)
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 authored Jan 26, 2023
1 parent 391ed61 commit d1c5d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var (
// ErrMemoSizeExceedsLimit is error for memo size exceeds limit
ErrMemoSizeExceedsLimit = serviceerror.NewInvalidArgument("Memo size exceeds limit.")
// ErrContextTimeoutTooShort is error for setting a very short context timeout when calling a long poll API
ErrContextTimeoutTooShort = serviceerror.NewInvalidArgument("Context timeout is too short.")
ErrContextTimeoutTooShort = serviceerror.NewFailedPrecondition("Context timeout is too short.")
// ErrContextTimeoutNotSet is error for not setting a context timeout when calling a long poll API
ErrContextTimeoutNotSet = serviceerror.NewInvalidArgument("Context timeout is not set.")
)
Expand Down

0 comments on commit d1c5d10

Please sign in to comment.