From d1c5d108ff914532758dd2d09a192744ed0e0bbe Mon Sep 17 00:00:00 2001 From: Yu Xia Date: Thu, 26 Jan 2023 15:49:21 -0800 Subject: [PATCH] Change deadline too short to failedPrecondition error (#3856) --- common/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/util.go b/common/util.go index 90924fb7a5a..34473e0f981 100644 --- a/common/util.go +++ b/common/util.go @@ -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.") )