revert
This commit is contained in:
parent
eaadad72e5
commit
17f9712796
1 changed files with 3 additions and 3 deletions
|
|
@ -299,10 +299,10 @@ func (c *Consumer) getShardIterator(ctx context.Context, streamName, shardID, se
|
||||||
}
|
}
|
||||||
|
|
||||||
func isRetriableError(err error) bool {
|
func isRetriableError(err error) bool {
|
||||||
if oe := (*types.ExpiredIteratorException)(nil); errors.As(err, &oe) {
|
switch err.(type) {
|
||||||
|
case *types.ExpiredIteratorException:
|
||||||
return true
|
return true
|
||||||
}
|
case *types.ProvisionedThroughputExceededException:
|
||||||
if oe := (*types.ProvisionedThroughputExceededException)(nil); errors.As(err, &oe) {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue