Fixed rate-limit config not work

This commit is contained in:
张城铭 2019-12-16 15:14:58 +08:00 committed by GitHub
parent 8878b9b04d
commit 389b4c632e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}