Update readme for checkpoint <EOM> (#53)

* remove ValidateCheckpoint
* update for checkpoint can not customize retryer
This commit is contained in:
Prometheus 2018-06-07 21:10:28 -07:00 committed by Harlow Ward
parent d058203b6e
commit b05f5b3ac6

View file

@ -105,6 +105,9 @@ ck, err := checkpoint.New(*app, *table, checkpoint.WithDynamoClient(myDynamoDbCl
if err != nil {
log.Fatalf("new checkpoint error: %v", err)
}
// Or we can provide your own Retryer to customize what triggers a retry inside checkpoint
// See code in examples
// ck, err := checkpoint.New(*app, *table, checkpoint.WithDynamoClient(myDynamoDbClient), checkpoint.WithRetryer(&MyRetryer{}))
```
To leverage the DDB checkpoint we'll also need to create a table: