mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-21 16:52:28 +00:00
errors: fix IsCanceled typo
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user