From 389b4c632eebfca3b21b0d7079dc05ca9868dafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=9F=8E=E9=93=AD?= <767036228@qq.com> Date: Mon, 16 Dec 2019 15:14:58 +0800 Subject: [PATCH] Fixed rate-limit config not work --- src/rate-limit/src/Annotation/RateLimit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rate-limit/src/Annotation/RateLimit.php b/src/rate-limit/src/Annotation/RateLimit.php index 164008443..4c3f8c510 100644 --- a/src/rate-limit/src/Annotation/RateLimit.php +++ b/src/rate-limit/src/Annotation/RateLimit.php @@ -23,22 +23,22 @@ class RateLimit extends AbstractAnnotation /** * @var int */ - public $create = 1; + public $create; /** * @var int */ - public $consume = 1; + public $consume; /** * @var int */ - public $capacity = 2; + public $capacity; /** * @var callable */ - public $limitCallback = []; + public $limitCallback; /** * @var callable|string @@ -48,5 +48,5 @@ class RateLimit extends AbstractAnnotation /** * @var int */ - public $waitTimeout = 1; + public $waitTimeout; }