Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
refactor(timer): Change Namespace of Timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Jun 28, 2019
1 parent 8188df9 commit 766d823
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/config/http_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@
// 定时器配置
'timer' => [
'crontab' => [
'class' => \apps\task\CronTabTimer::class,
'class' => \apps\timer\CronTabTimer::class,
'type' => \Rid\Base\Timer::TICK,
'msec' => 5 * 60 * 1000, // TODO 单位为毫秒,应该为所有contab worker的最小公倍数(应该在面板有所提醒)
'callback' => 'init'
],
'tracker' => [
'class' => \apps\task\TrackerAnnounceTimer::class,
'class' => \apps\timer\TrackerAnnounceTimer::class,
'type' => \Rid\Base\Timer::AFTER,
'msec' => 10 * 1000,
'callback' => 'init'
Expand Down
2 changes: 1 addition & 1 deletion apps/task/CronTabTimer.php → apps/timer/CronTabTimer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 22:19
*/

namespace apps\task;
namespace apps\timer;

use Rid\Base\Timer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 9:46
*/

namespace apps\task;
namespace apps\timer;

use Rid\Base\Timer;

Expand Down

0 comments on commit 766d823

Please sign in to comment.