mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-04-29 23:27:42 +00:00
errors: fix IsCanceled typo
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
8eb63902b0
commit
82e4d9a944
@ -166,7 +166,7 @@ func IsCanceled(err error) bool {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return status.Convert(err).Code() == codes.Canceled || IsCanceled(err)
|
return status.Convert(err).Code() == codes.Canceled || IsContextCanceled(err)
|
||||||
}
|
}
|
||||||
func IsUnknown(err error) bool {
|
func IsUnknown(err error) bool {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user