errors: fix IsCanceled typo

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2025-03-25 14:27:27 +01:00
parent 8eb63902b0
commit 82e4d9a944
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF

View File

@ -166,7 +166,7 @@ func IsCanceled(err error) bool {
if err == nil {
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 {
if err == nil {