From 6318c60e9395d51345a6e29548b187a0c2247eed Mon Sep 17 00:00:00 2001 From: Aleksandr Denisyuk Date: Tue, 7 Sep 2021 15:20:13 +0300 Subject: [PATCH] Updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4813174..2d99761 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,11 @@ $baseTimeMs = 1000; $backOff = new ExponentialBackOff($maxAttempts, $baseTimeMs); -$classifier = new ExceptionClassifier([ +$exceptionClassifier = new ExceptionClassifier([ \RuntimeException::class, ]); -$retry = new Retry($backOff, $classifier); +$retry = new Retry($backOff, $exceptionClassifier); ``` Put the business logic in a callback function and call it: