mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
Fixed rate-limit config not work
This commit is contained in:
parent
8878b9b04d
commit
389b4c632e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user