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 {
|
||||
if oe := (*types.ExpiredIteratorException)(nil); errors.As(err, &oe) {
|
||||
switch err.(type) {
|
||||
case *types.ExpiredIteratorException:
|
||||
return true
|
||||
}
|
||||
if oe := (*types.ProvisionedThroughputExceededException)(nil); errors.As(err, &oe) {
|
||||
case *types.ProvisionedThroughputExceededException:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in a new issue