Skip to content

Commit d1c5d10

Browse files
authored
Change deadline too short to failedPrecondition error (#3856)
1 parent 391ed61 commit d1c5d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ var (
143143
// ErrMemoSizeExceedsLimit is error for memo size exceeds limit
144144
ErrMemoSizeExceedsLimit = serviceerror.NewInvalidArgument("Memo size exceeds limit.")
145145
// ErrContextTimeoutTooShort is error for setting a very short context timeout when calling a long poll API
146-
ErrContextTimeoutTooShort = serviceerror.NewInvalidArgument("Context timeout is too short.")
146+
ErrContextTimeoutTooShort = serviceerror.NewFailedPrecondition("Context timeout is too short.")
147147
// ErrContextTimeoutNotSet is error for not setting a context timeout when calling a long poll API
148148
ErrContextTimeoutNotSet = serviceerror.NewInvalidArgument("Context timeout is not set.")
149149
)

0 commit comments

Comments
 (0)