改名
This commit is contained in:
@@ -33,7 +33,7 @@ abstract class Process extends \Swoole\Process
|
|||||||
parent::__construct(function ($process) use ($name, $class) {
|
parent::__construct(function ($process) use ($name, $class) {
|
||||||
if (Snowflake::isLinux()) {
|
if (Snowflake::isLinux()) {
|
||||||
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
|
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
|
||||||
$this->name($prefix . ' ' . $class . '::class');
|
$this->name($prefix . ': ' . $class . '::class');
|
||||||
}
|
}
|
||||||
$this->onHandler($process);
|
$this->onHandler($process);
|
||||||
}, false, 1, $enable_coroutine);
|
}, false, 1, $enable_coroutine);
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ class ServerInotify extends Process
|
|||||||
if (extension_loaded('inotify')) {
|
if (extension_loaded('inotify')) {
|
||||||
$this->inotify = inotify_init();
|
$this->inotify = inotify_init();
|
||||||
$this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;
|
$this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;
|
||||||
$process->name('event: file change.');
|
|
||||||
foreach ($this->dirs as $dir) {
|
foreach ($this->dirs as $dir) {
|
||||||
$this->watch($dir);
|
$this->watch($dir);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user