Make sure sequence number is never an empty value, default to '0'.
This commit is contained in:
parent
9b6b643efb
commit
192ad8cc39
1 changed files with 3 additions and 0 deletions
|
|
@ -116,6 +116,9 @@ func (c *Checkpoint) GetCheckpoint(streamName, shardID string) (string, error) {
|
|||
|
||||
var i item
|
||||
attributevalue.UnmarshalMap(resp.Item, &i)
|
||||
if i.SequenceNumber == "" {
|
||||
i.SequenceNumber = "0"
|
||||
}
|
||||
return i.SequenceNumber, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue