remove unreachable code
This commit is contained in:
parent
27f13ed3fc
commit
db9668152a
1 changed files with 1 additions and 1 deletions
|
|
@ -198,6 +198,7 @@ func (c *Consumer) getShardIDs(streamName string) ([]string, error) {
|
|||
var listShardsInput = &kinesis.ListShardsInput{
|
||||
StreamName: aws.String(streamName),
|
||||
}
|
||||
|
||||
for {
|
||||
resp, err := c.client.ListShards(listShardsInput)
|
||||
if err != nil {
|
||||
|
|
@ -216,7 +217,6 @@ func (c *Consumer) getShardIDs(streamName string) ([]string, error) {
|
|||
NextToken: resp.NextToken,
|
||||
}
|
||||
}
|
||||
return ss, nil
|
||||
}
|
||||
|
||||
func (c *Consumer) getShardIterator(streamName, shardID, seqNum string) (*string, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue