From 22bd7c45b1896f0e541ef8df5140fba931aa91be Mon Sep 17 00:00:00 2001 From: Scott Wimer Date: Mon, 29 Feb 2016 20:31:10 -0800 Subject: [PATCH] Fix position of withRetries() in call chain The `withRetries()` method is on the `Vault` class, not the `Logical` class. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb0614a4..5a703eee 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,8 @@ implementation: ``` // Retry up to 5 times if failures occur, waiting 1000 milliseconds in between each retry attempt. -final LogicalResponse response = vault.logical() - .withRetries(5, 1000) +final LogicalResponse response = vault.withRetries(5,1000) + .logical() .read("secret/hello"); ```