From b05f5b3ac602b21eb959b81f638dd181a4b86948 Mon Sep 17 00:00:00 2001 From: Prometheus Date: Thu, 7 Jun 2018 21:10:28 -0700 Subject: [PATCH] Update readme for checkpoint (#53) * remove ValidateCheckpoint * update for checkpoint can not customize retryer --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2621496..6cf3ae6 100644 --- a/README.md +++ b/README.md @@ -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: