11 lines
171 B
Go
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)
|
|
}
|