From 4c2864ef56ff884653096610beb4458e211a5330 Mon Sep 17 00:00:00 2001 From: Edward Tsang Date: Tue, 5 Jun 2018 11:52:12 -0700 Subject: [PATCH] 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: