From 3b8f741935358b701db795db4b1beeb41199a990 Mon Sep 17 00:00:00 2001 From: outlaws Date: Fri, 27 Dec 2019 10:14:38 +0800 Subject: [PATCH] Update retry.md --- doc/zh-cn/retry.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/zh-cn/retry.md b/doc/zh-cn/retry.md index c368f6eeb..94922eaa9 100644 --- a/doc/zh-cn/retry.md +++ b/doc/zh-cn/retry.md @@ -332,7 +332,7 @@ $result = \Hyperf\Retry\Retry::with( $result = \Hyperf\Retry\Retry::whenReturns(false) // 当返回false时重试 ->max(3) // 最多3次 ->inSeconds(5) // 最长5秒 - ->sleep(1) // 间隔1秒 + ->sleep(1) // 间隔1毫秒 ->fallback(function(){return true;}) // fallback函数 ->call(function(){ if (rand(1, 100) >= 20){