You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the error is !isRetriable(err), the error format string grabs the value of the error instead of wrapping it with %w.
This is problematic for my use case, as it is possible that context.CancelFunc is called during the GetRecords call (however unlikely), and I need to check if errors.Is(err, context.Cancelled). Since it is not wrapped, it is impossible for me to tell whether this is the case.
The text was updated successfully, but these errors were encountered:
In
ScanShard
, if an error is encountered during the Kinesis GetRecords call here: https://github.com/harlow/kinesis-consumer/blob/master/consumer.go#L194-L196and the error is
!isRetriable(err)
, the error format string grabs the value of the error instead of wrapping it with%w
.This is problematic for my use case, as it is possible that
context.CancelFunc
is called during the GetRecords call (however unlikely), and I need to check iferrors.Is(err, context.Cancelled)
. Since it is not wrapped, it is impossible for me to tell whether this is the case.The text was updated successfully, but these errors were encountered: