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{
|
var listShardsInput = &kinesis.ListShardsInput{
|
||||||
StreamName: aws.String(streamName),
|
StreamName: aws.String(streamName),
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
resp, err := c.client.ListShards(listShardsInput)
|
resp, err := c.client.ListShards(listShardsInput)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -216,7 +217,6 @@ func (c *Consumer) getShardIDs(streamName string) ([]string, error) {
|
||||||
NextToken: resp.NextToken,
|
NextToken: resp.NextToken,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ss, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Consumer) getShardIterator(streamName, shardID, seqNum string) (*string, error) {
|
func (c *Consumer) getShardIterator(streamName, shardID, seqNum string) (*string, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue