Skip to content

Commit b325cf0

Browse files
authored
提升测试覆盖率,多项修复和改进 (#518)
1 parent bea385f commit b325cf0

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

example/config/beans.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
return [
88
'hotUpdate' => [
9-
// 'status' => false, // 关闭热更新去除注释,不设置即为开启,建议生产环境关闭
9+
'status' => false, // 关闭热更新去除注释,不设置即为开启,建议生产环境关闭
1010

1111
// --- 文件修改时间监控 ---
1212
// 'monitorClass' => \Imi\HotUpdate\Monitor\FileMTime::class,

example/config/config.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'port' => 8080,
3737
'configs' => [
3838
'worker_num' => 1,
39+
'max_wait_time' => 30,
3940
],
4041
],
4142

@@ -51,6 +52,12 @@
5152
],
5253
],
5354

55+
'workerman' => [
56+
'worker' => [
57+
'stopTimeout' => 30,
58+
],
59+
],
60+
5461
// 连接池配置
5562
'pools' => Imi::checkAppType('swoole') ? [
5663
'redis' => [

src/Enum/QueueType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
/**
1111
* 队列类型.
1212
*/
13-
abstract class QueueType extends BaseEnum
13+
class QueueType extends BaseEnum
1414
{
15+
use \Imi\Util\Traits\TStaticClass;
16+
1517
/**
1618
* @EnumItem(text="准备就绪", type="list")
1719
*/

0 commit comments

Comments
 (0)