Skip to content

Commit

Permalink
优化定义注解时,Parser 不是必须定义的,默认为 NullParser (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Dec 3, 2021
1 parent 407fb30 commit a4ff88e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Annotation/BlockingConsumer.php
Expand Up @@ -5,7 +5,6 @@
namespace Imi\RateLimit\Annotation;

use Imi\Bean\Annotation\Base;
use Imi\Bean\Annotation\Parser;

/**
* 阻塞等待消费.
Expand All @@ -14,7 +13,6 @@
*
* @Annotation
* @Target("METHOD")
* @Parser("\Imi\Bean\Parser\NullParser")
*
* @property int|null $timeout 超时时间,单位:秒;为 null 不限制
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Annotation/RateLimit.php
Expand Up @@ -5,14 +5,12 @@
namespace Imi\RateLimit\Annotation;

use Imi\Bean\Annotation\Base;
use Imi\Bean\Annotation\Parser;

/**
* 限流器注解.
*
* @Annotation
* @Target("METHOD")
* @Parser("\Imi\Bean\Parser\NullParser")
*
* @property string $name 限流器名称
* @property int $capacity 总容量
Expand Down
2 changes: 0 additions & 2 deletions src/Annotation/WorkerLimit.php
Expand Up @@ -5,14 +5,12 @@
namespace Imi\RateLimit\Annotation;

use Imi\Bean\Annotation\Base;
use Imi\Bean\Annotation\Parser;

/**
* 并发工作数限制注解.
*
* @Annotation
* @Target("METHOD")
* @Parser("\Imi\Bean\Parser\NullParser")
*
* @property string $name 限流器名称
* @property int $max 最大同时工作数量
Expand Down

0 comments on commit a4ff88e

Please sign in to comment.