remove ValidateCheckpoint
This commit is contained in:
parent
992cc42419
commit
a800065101
2 changed files with 0 additions and 16 deletions
|
|
@ -127,18 +127,6 @@ func (c *Checkpoint) Set(streamName, shardID, sequenceNumber string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ValidaCheckpoint validate the checkpoint table exits, shut down
|
||||
func (c *Checkpoint) ValidateCheckpoint() error {
|
||||
// ping table to verify it exists
|
||||
_, err := c.client.DescribeTable(&dynamodb.DescribeTableInput{
|
||||
TableName: aws.String(c.tableName),
|
||||
})
|
||||
if err != nil {
|
||||
c.done <- struct{}{}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// Shutdown the checkpoint. Save any in-flight data.
|
||||
func (c *Checkpoint) Shutdown() error {
|
||||
c.done <- struct{}{}
|
||||
|
|
|
|||
|
|
@ -52,10 +52,6 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatalf("checkpoint error: %v", err)
|
||||
}
|
||||
err = ck.ValidateCheckpoint()
|
||||
if err != nil {
|
||||
log.Fatalf("checkpoint validation error: %v", err)
|
||||
}
|
||||
var (
|
||||
counter = expvar.NewMap("counters")
|
||||
logger = log.New(os.Stdout, "", log.LstdFlags)
|
||||
|
|
|
|||
Loading…
Reference in a new issue