Files
micro-broker-kgo/errors.go
pugnack d5d1e26d7b
Some checks failed
coverage / build (push) Failing after 2m7s
test / test (push) Failing after 19m17s
remove noisy logs from event hooks and add tests (#192)
2025-07-10 10:49:49 +03:00

11 lines
171 B
Go

package kgo
import (
"context"
"errors"
)
func isContextError(err error) bool {
return errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)
}