Get rid of unused skipTableCheck (#39)
This commit is contained in:
parent
46fea317de
commit
4f79203f44
1 changed files with 1 additions and 2 deletions
|
|
@ -61,7 +61,6 @@ type DynamoCheckpoint struct {
|
||||||
svc dynamodbiface.DynamoDBAPI
|
svc dynamodbiface.DynamoDBAPI
|
||||||
kclConfig *config.KinesisClientLibConfiguration
|
kclConfig *config.KinesisClientLibConfiguration
|
||||||
Retries int
|
Retries int
|
||||||
skipTableCheck bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDynamoCheckpoint(kclConfig *config.KinesisClientLibConfiguration) *DynamoCheckpoint {
|
func NewDynamoCheckpoint(kclConfig *config.KinesisClientLibConfiguration) *DynamoCheckpoint {
|
||||||
|
|
@ -103,7 +102,7 @@ func (checkpointer *DynamoCheckpoint) Init() error {
|
||||||
checkpointer.svc = dynamodb.New(s)
|
checkpointer.svc = dynamodb.New(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !checkpointer.skipTableCheck && !checkpointer.doesTableExist() {
|
if !checkpointer.doesTableExist() {
|
||||||
return checkpointer.createTable()
|
return checkpointer.createTable()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue