Files
micro-broker-kgo/errors.go
pugnack cced3b84c1
Some checks failed
coverage / build (push) Failing after 1m50s
test / test (push) Failing after 19m17s
sync / sync (push) Successful in 7s
remove noisy logs from event hooks and add tests (#193)
2025-07-10 12:51:26 +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)
}