Skip to content

Commit

Permalink
feat:update version
Browse files Browse the repository at this point in the history
  • Loading branch information
bingcool committed Apr 13, 2023
1 parent 6c378d4 commit 174857e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Test/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class Bootstrap implements BootstrapInterface
{
public static function handle(Request $request, Response $response)
{
SystemException::throw(
"数据缺失",
['uid' => 100]
);
// SystemException::throw(
// "数据缺失",
// ['uid' => 100]
// );

//return Application::getApp()->beforeEnd(500);
}
Expand Down
2 changes: 1 addition & 1 deletion Test/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function onInit() {
//ProcessManager::getInstance()->addProcess('tick', \Test\Process\TickProcess\Tick::class);

// 测试cron自定义进程
//ProcessManager::getInstance()->addProcess('cron', \Test\Process\CronProcess\Cron::class);
ProcessManager::getInstance()->addProcess('cron', \Test\Process\CronProcess\Cron::class);

// 这里为什么获取不到pid,那是应为process需要server执行start后才会创建,而在这里只是创建实例,server还没正式启动
//$pid = ProcessManager::getInstance()->getProcessByName('cron')->getPid();
Expand Down
2 changes: 1 addition & 1 deletion Test/Process/CronProcess/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function run() {
// });
//
// // 抽离成CronController形式
// CrontabManager::getInstance()->addRule('cron_test1', '*/1 * * * *', [CronController::class, 'doCronTask']);
CrontabManager::getInstance()->addRule('cron_test1', '*/1 * * * *', [CronController::class, 'doCronTask']);

// CrontabManager::getInstance()->addRule('cron_test1', '*/1 * * * *', [CronController::class, 'doCronTask']);

Expand Down
2 changes: 1 addition & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
defined('MQTT_PROTOCOL_LEVEL3') or define('MQTT_PROTOCOL_LEVEL3', 4);
defined('MQTT_PROTOCOL_LEVEL5') or define('MQTT_PROTOCOL_LEVEL5', 5);

defined('SWOOLEFY_VERSION') or define('SWOOLEFY_VERSION', '5.0.4');
defined('SWOOLEFY_VERSION') or define('SWOOLEFY_VERSION', '5.0.5');
defined('SWOOLEFY_EOF_FLAG') or define('SWOOLEFY_EOF_FLAG', '::');

defined('WORKER_CLI_STOP') or define('WORKER_CLI_STOP','stop');
Expand Down

0 comments on commit 174857e

Please sign in to comment.