remove noisy logs from event hooks and add tests (#192)
Some checks failed
coverage / build (push) Failing after 2m7s
test / test (push) Failing after 19m17s

This commit is contained in:
2025-07-10 12:49:49 +05:00
committed by GitHub
parent aabfecfd3d
commit d5d1e26d7b
5 changed files with 416 additions and 37 deletions

10
errors.go Normal file
View File

@@ -0,0 +1,10 @@
package kgo
import (
"context"
"errors"
)
func isContextError(err error) bool {
return errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)
}